mIRC Homepage
Posted By: GogetaX Securety Mode.. - 11/01/05 10:51 AM
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
Posted By: Iori Re: Securety Mode.. - 11/01/05 02:32 PM
Code:
on @*:ban:#:{
  if $banmask iswm $ial($me) { ban -k $nick 2 Don't ban me }
}
Posted By: ricky_knuckles Re: Securety Mode.. - 11/01/05 11:27 PM
wouldnt you already be gone by that point
Posted By: SladeKraven Re: Securety Mode.. - 11/01/05 11:40 PM
That depends on whether he was kicked or not.
Posted By: GogetaX Re: Securety Mode.. - 12/01/05 07:25 AM
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! }
  }
}
Posted By: SladeKraven Re: Securety Mode.. - 12/01/05 07:32 AM
I'd still use Iori's if ($banmask iswm $ial($me)) code, his checks for all banmasks on you not just *!*@host. smile
Posted By: Iori Re: Securety Mode.. - 12/01/05 09:28 AM
$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! }
  }
}
© mIRC Discussion Forums