mIRC Home    About    Download    Register    News    Help

Print Thread
#128774 30/08/05 07:15 AM
Joined: Aug 2005
Posts: 39
B
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.

#128775 30/08/05 08:20 AM
Joined: Dec 2002
Posts: 3,547
S
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

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

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

just what i needed smile

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

-Andy


Link Copied to Clipboard