mIRC Home    About    Download    Register    News    Help

Print Thread
#138385 30/12/05 11:59 AM
Joined: Dec 2005
Posts: 8
D
danago Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Dec 2005
Posts: 8
Hey. When i use the /ban command, it bans the full address. How can i customize the address it bans, because i dont want it to only ban the persons username.

If there is an identifier that returned a users address, i could work with that.

#138386 30/12/05 12:10 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
/help /ban

Quote:

/ban [-kruN] [#channel] <nickname|address> [type]

For a list of ban types see the $mask identifier.


Quote:

$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


So you specify a number from 0 to 9 to specify which mask type you want.


Gone.
#138387 30/12/05 12:20 PM
Joined: Dec 2005
Posts: 8
D
danago Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Dec 2005
Posts: 8
i tried $mask($nick, 0)

but it just returned $nick

EDIT: ohhhhhh, i understand what the [type] means now.

Last edited by danago; 30/12/05 12:22 PM.

Link Copied to Clipboard