mIRC Homepage

on *:BAN-problem, please help me.

Posted By: tordie

on *:BAN-problem, please help me. - 12/01/08 09:12 PM

Hey folks!

Im trying to make a little script that deops and bans everyone that attempts to ban a user in my channel. My code is:

Code:
on *:BAN:#mychannel:{ mode $chan -o+b $nick $address($nick,2) | .timer 1 3 kick $chan $nick BAN PROTECTION. }


That works, but if the user is attempt to mass ban, my bot fails to ban him. How can i solve this?

Best Regards, Tordie.
Posted By: Lpfix5

Re: on *:BAN-problem, please help me. - 14/01/08 04:52 AM

on *:BAN:#mychannel:mode # -o $nick | ban -k $chan $nick BAN PROTECTION.
Posted By: LostShadow

Re: on *:BAN-problem, please help me. - 14/01/08 05:51 PM

Originally Posted By: tordie
That works, but if the user is attempt to mass ban, my bot fails to ban him. How can i solve this?


That's absolutely correct - there is no way for mIRC to know when a person "attempt"ed to mass ban. The only way mIRC will know that something happened is if that something does happen.

-Neal.
Posted By: jakerandall

Re: on *:BAN-problem, please help me. - 15/01/08 01:31 AM

Quote:
here is no way for mIRC to know when a person "attempt"ed to mass ban. The only way mIRC will know that something happened is if that something does happen.

Potentially no, but you can get scripts to mass ban. so it would be safer to protect against it jut in-case.
Posted By: LostShadow

Re: on *:BAN-problem, please help me. - 15/01/08 02:40 AM

Originally Posted By: jakerandall
Quote:
here is no way for mIRC to know when a person "attempt"ed to mass ban. The only way mIRC will know that something happened is if that something does happen.

Potentially no, but you can get scripts to mass ban. so it would be safer to protect against it jut in-case.


That is what I said - you can get scripts to mass ban. In a remote event, you just need mIRC to know when to trigger, such as time of day, or when a certain something happens.
© 2019 mIRC Discussion Forums