mIRC Home    About    Download    Register    News    Help

Print Thread
#107153 07/01/05 12:20 PM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Ok well my bot is setup now thanks to some of you great people here! ^_^

But I'm sure I'll have some abusers I'd like it to keep logs in every pc. But from besides that I want a script that bans that user from it...If they abused it, other people can still use it but only that one person no longer can.

Thanks! laugh


Do the monkey!
#107154 07/01/05 12:37 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
And how would it get abused? Examples on what you mean?

#107155 07/01/05 09:45 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
i think hes going to have pretty open access
so alot of people will be accessing the bot so there bound to be a moron or two
the big trick will be the definition of abuse
youd be better of restricting any commands you dont want them having access too


The Kodokan will move you, one way or another.
#107156 07/01/05 09:49 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well, IMO I never use access levels. It is always a * access. And store users access levels and such in a hash table which is so much secure.

#107157 08/01/05 02:35 AM
Joined: Sep 2004
Posts: 200
I
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
you could add this to a new script:
on *:text:*:#: {
if (<command prefix>* iswm $1-) {
if ([ %flood.command. [ $+ [ $nick ] ] ] != $null) {
set %flood.command. $+ $nick 1
timer 1 20 unset %flood.command. $+ $nick
halt
}
else {
inc %flood.command. $+ $nick 1
if ([ %flood.command. [ $+ [ $nick ] ] ] > 5) {
mode $chan -ohvaq+b $nick $nick $nick $nick $nick $address($nick,12)
kick $chan $nick Command flooding
}
}
}
you can change the kick msg and the timers as you want if the command prefix is ! then it would ben if (!* iswm $1-) {
this would allow 6 commands (i think) in 20 seconds.


Link Copied to Clipboard