mIRC Home    About    Download    Register    News    Help

Print Thread
on *:BAN-problem, please help me. #192928
12/01/08 09:12 PM
12/01/08 09:12 PM
Joined: Jan 2008
Posts: 3
T
tordie Offline OP
Self-satisified door
tordie  Offline OP
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
14/01/08 04:52 AM
Joined: Aug 2005
Posts: 1,052
Canada
L
Lpfix5 Offline
Hoopy frood
Lpfix5  Offline
Hoopy frood
L

Joined: Aug 2005
Posts: 1,052
Canada
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
14/01/08 05:51 PM
Joined: Jan 2004
Posts: 509
Chicago, Illinois, U.S.A.
L
LostShadow Offline
Fjord artisan
LostShadow  Offline
Fjord artisan
L

Joined: Jan 2004
Posts: 509
Chicago, Illinois, U.S.A.
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
15/01/08 01:31 AM
Joined: Jan 2008
Posts: 44
Somerset,UK
J
jakerandall Offline
Ameglian cow
jakerandall  Offline
Ameglian cow
J

Joined: Jan 2008
Posts: 44
Somerset,UK
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
15/01/08 02:40 AM
Joined: Jan 2004
Posts: 509
Chicago, Illinois, U.S.A.
L
LostShadow Offline
Fjord artisan
LostShadow  Offline
Fjord artisan
L

Joined: Jan 2004
Posts: 509
Chicago, Illinois, U.S.A.
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.