This is one you would put in your Aliases. It is an Ignore with a timer for it. The time is in seconds or minutes depending on which one you use.
Example:
/ignore WaiterJohn 30
/ignore WaiterJohn 1
;;;Seconds;;;
;Command trigger /ignore nick time (in seconds)
ignore {
var %n $$1
/ignore $$1
echo * Added $$1!*@* to ignore list for $$2 seconds
silence + $+ $$1
timer 1 $$2 /ignoretimer $$1 $$2 %n
}
ignoretimer { silence + $+ $$1 | echo * Removed $$1!*@* from ignore list }
-----------------
;;;Minutes;;;
;Command trigger /ignore nick time (in seconds)
ignore {
var %n $$1
/ignore $$1
echo * Added $$1!*@* to ignore list for $$2 minutes
silence + $+ $$1
timer 1 $calc($$2 * 60) /ignoretimer $$1 $calc($$2 * 60) %n
}
ignoretimer { silence + $+ $$1 | echo * Removed $$1!*@* from ignore list }
hi Sultani.... i ran that code you posted, but it dosent seem to be working at all
Im trying to have the bot ingore ppl if they flood chan.
I tried to flood the chan, but the bot never ignored me
(yes i made sure i was un-oped when trying to flood)
i cant seem to find anything else like this here on hawkee or anywhere online
i was looking for something like this, i saw an anti flood made by zainul, and then i made this for my needs:
on 1:TEXT:*:?:{
if ($nick == $me) {
halt
}
if ($nick isop $chan) {
halt
}
inc -u5 %flood. [ $+ [ $nick ] ]
if (%flood. [ $+ [ $nick ] ] == 6) {
/ignore -u40 $nick
halt
}
}
it will block the user that flood (include querys) for the time i set..
I just follow the xDaeMoN advice and voila..