mIRC Home    About    Download    Register    News    Help

Print Thread
#95329 23/08/04 10:52 PM
Joined: Aug 2004
Posts: 5
N
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Aug 2004
Posts: 5
Hello,

I'm working on an ignore features for my room bot and would like to know how to get a user's hostmask so I can ban based on hostmask instead of nickname.

Thanks in advance,
-Neverrain

#95330 23/08/04 11:02 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
You can get a user's mask with the $address identifier.
(everything from the help file)

$address(nickname,type)
Searches the Internal Address List for the address associated with the specified nickname.

$address(nick,1) returns *!*user@host

If the Internal Address List doesn't contain a matching nickname, the identifier returns $null.

See $mask() for a list of types:

$mask(address,type)
Returns address with a mask specified by type.

$mask(nick!khaled@mirc.com,1) returns *!*khaled@mirc.com

$mask(nick!khaled@mirc.com,2) returns *!*@mirc.com


The available types are:

0: *!user@host
1: *!*user@host
2: *!*@host
3: *!*user@*.host
4: *!*@*.host
5: nick!user@host
6: nick!*user@host
7: nick!*@host
8: nick!*user@*.host
9: nick!*@*.host


You can also specify a type of 10 to 19 which correspond to masks 0 to 9, but instead of using a * wildcard to replace portions of the host, mIRC uses ? wildcards to replace the numbers in the address.

- I think this can help more than my own trial smile

Zyzzyx.


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard