mIRC Homepage
Posted By: JuanAm Ban nick, user ID and virtual IP - 07/02/15 07:50 AM
I want to make 3 commands on one line.
Ban the exact NICK
Ban the exact IDENT (user id).
Ban the virtual IP

I have not found the exact mask that you do this:
*!User ID@*
and
nick!*@*

Example:
test_ban_kick [test@CUpRZQ.A8PlmG.virtual]
Nick: test_ban_kick
User ID: test
Virtual IP:CUpRZQ.A8PlmG.virtual

I want the command do this:
+b test_ban_kick!*@*
+b *!test@*
+b *!*@CUpRZQ.A8PlmG.virtual
But that does not put a ban user ID containing the word 'test', but to do so only to 'test'. No to 'testing' for example.

I tried:

Code:
if ($1 == kb) { .mode $chan +b $address($2,5) | .mode $chan +b $address($2,2) | .mode $chan +b $address($2,1) }


But this line is wrong!

Posted By: OrFeAsGr Re: Ban nick, user ID and virtual IP - 07/02/15 01:07 PM
Code:
if ($1 == kb) { mode $chan +b $address($nick,2) | mode $chan +b $nick | mode $chan +b $remtok($gettok($address($nick,0),1,64),*,0,33) }

the first bans the host (virtual ip ) , the second bans the nick and the third bans the ident.
test the 3rd to see it works great smile type //echo -a $remtok($gettok($address($me,0),1,64),*,0,33)
token identifiers are very usefull
Posted By: JuanAm Re: Ban nick, user ID and virtual IP - 07/02/15 08:34 PM
Originally Posted By: OrFeAsGr
Code:
if ($1 == kb) { mode $chan +b $address($nick,2) | mode $chan +b $nick | mode $chan +b $remtok($gettok($address($nick,0),1,64),*,0,33) }

the first bans the host (virtual ip ) , the second bans the nick and the third bans the ident.
test the 3rd to see it works great smile type //echo -a $remtok($gettok($address($me,0),1,64),*,0,33)
token identifiers are very usefull


This command ban myself

I fixed this, changing $nick for $2.

Thank you!! smile
Posted By: OrFeAsGr Re: Ban nick, user ID and virtual IP - 07/02/15 08:38 PM
oh sorry lol i forgot it was text event :P
© mIRC Discussion Forums