mIRC Home    About    Download    Register    News    Help

Print Thread
#107581 11/01/05 10:51 AM
Joined: Nov 2004
Posts: 84
GogetaX Offline OP
Babel fish
OP Offline
Babel fish
Joined: Nov 2004
Posts: 84
hey guys.. im making a securety mode that can block things..

so my question is how to do, when u in OP and your friend in OP, but with securety mode u can be banned by your friend..
what to do?

i have thinked about something easy, like when its writing +b IP, so DEOP/kick your friend..

anyone know how to do this? =]

thx


by the time you finish reading this, you realize you have wasted 5 secundes of your life!
#107582 11/01/05 02:32 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on @*:ban:#:{
  if $banmask iswm $ial($me) { ban -k $nick 2 Don't ban me }
}

#107583 11/01/05 11:27 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
wouldnt you already be gone by that point


The Kodokan will move you, one way or another.
#107584 11/01/05 11:40 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
That depends on whether he was kicked or not.

#107585 12/01/05 07:25 AM
Joined: Nov 2004
Posts: 84
GogetaX Offline OP
Babel fish
OP Offline
Babel fish
Joined: Nov 2004
Posts: 84
i have a little changed it.. so it works fine..

here is my code:
Code:
  
on @*:ban:#: { if (%securety == 1) { if ( $banmask iswm $address($me,2) ) {
    kick $chan $nick 2 8Security Mode4, 9Dont Try to Ban Me! }
  }
}


by the time you finish reading this, you realize you have wasted 5 secundes of your life!
#107586 12/01/05 07:32 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I'd still use Iori's if ($banmask iswm $ial($me)) code, his checks for all banmasks on you not just *!*@host. smile

#107587 12/01/05 09:28 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
$ial(nick) returns the full address - nick!user@123.host.com
$address($me,2) is only the host part of that - *!*@123.host.com
You need $address($me,5) to match all possible banmasks, which is exactly the same as $ial($me) smile

Also see /help /if for info on &&.
Code:
on @*:ban:#:{
  if (%securety == 1) [color:red]&&[/color] ($banmask iswm $address($me,[color:red]5[/color])) {
    kick $chan $nick 8Security Mode4, 9Dont Try to Ban Me! }
  }
}


Link Copied to Clipboard