mIRC Home    About    Download    Register    News    Help

Print Thread
on *:BAN-problem, please help me. #192928 12/01/08 09:12 PM
Joined: Jan 2008
Posts: 3
T
tordie Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Jan 2008
Posts: 3
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.

Re: on *:BAN-problem, please help me. [Re: tordie] #193016 14/01/08 04:52 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
on *:BAN:#mychannel:mode # -o $nick | ban -k $chan $nick BAN PROTECTION.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: on *:BAN-problem, please help me. [Re: tordie] #193060 14/01/08 05:51 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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.

Re: on *:BAN-problem, please help me. [Re: LostShadow] #193103 15/01/08 01:31 AM
Joined: Jan 2008
Posts: 44
J
jakerandall Offline
Ameglian cow
Offline
Ameglian cow
J
Joined: Jan 2008
Posts: 44
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.


#Plesh on QuaKenet
Jake Randall
Need help?
#Plesh - QuakeNet
Private Message Me Here!
Re: on *:BAN-problem, please help me. [Re: jakerandall] #193105 15/01/08 02:40 AM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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.