mIRC Home    About    Download    Register    News    Help

Print Thread
ban detection #128774 30/08/05 07:15 AM
Joined: Aug 2005
Posts: 39
B
buster2007 Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
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.

Re: ban detection #128775 30/08/05 08:20 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on @*:ban:#:{  
  if ($banmask iswm $ial($me)) { ban -k $nick 2 }
}


-Andy

Re: ban detection #128776 30/08/05 08:48 AM
Joined: Aug 2005
Posts: 39
B
buster2007 Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
thanks.

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

just what i needed smile

Re: ban detection #128777 30/08/05 09:04 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome. smile

-Andy