mIRC Homepage
Posted By: Scriptor Bot ban - 07/01/05 12:20 PM
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
Posted By: SladeKraven Re: Bot ban - 07/01/05 12:37 PM
And how would it get abused? Examples on what you mean?
Posted By: ricky_knuckles Re: Bot ban - 07/01/05 09:45 PM
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
Posted By: SladeKraven Re: Bot ban - 07/01/05 09:49 PM
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.
Posted By: IR_n00b Re: Bot ban - 08/01/05 02:35 AM
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.
© mIRC Discussion Forums