mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
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!


Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
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

Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
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

Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
oh sorry lol i forgot it was text event :P


Link Copied to Clipboard