mIRC Homepage
Posted By: buster2007 ban detection - 30/08/05 07:15 AM
hello again.
i've been having a problem detecting a ban against myself.
what i do is:

if (($banmask == $address($me,1)) || ($banmask == $address($me,2)) || ($banmask == $address($me,3)) || ($banmask == $address($me,4)) || ($banmask == $address($me,5)) || ($banmask == $address($me,6)) || ($banmask == $address($me,7)) || ($banmask == $address($me,8)) || ($banmask == $address($me,9))

smile i know it looks silly, but i don't know any other way, and this doesn't work if, for example, my ip is 231.111.222.333 and some user bans me like *!*@*2*3
cand you please tell me some other way to detect bans against me?/
thank you.
Posted By: SladeKraven Re: ban detection - 30/08/05 08:20 AM
Code:
on @*:ban:#:{  
  if ($banmask iswm $ial($me)) { ban -k $nick 2 }
}


-Andy
Posted By: buster2007 Re: ban detection - 30/08/05 08:48 AM
thanks.

if ($banmask iswm $ial($me))

just what i needed smile
Posted By: SladeKraven Re: ban detection - 30/08/05 09:04 AM
You're welcome. smile

-Andy
© mIRC Discussion Forums