I'd like to code a temporary ignore that kicks in after users have triggered an process through actions or pubm.
For example:
set trigger-on-ignore 0
bind pubm - "*~milk~*" pubtrig11
proc pubtrig11 {nick uhost handle chan args} {
global botnick
putchan $chan "Got milk, $nick ?"
tempignore $nick $uhost
}
proc tempignore { nick uhost } {
global botnick
putlog "Temp-ignoring $nick for 60 seconds."
putserv "IGNORE $nick all"
utimer 60 [subst {putserv "IGNORE $nick NONE"}]
newignore $uhost Bot TempIgnore 1
}
Somehow the bot still reacts to 'milk' though even though I can see the "Temp-ignoring..." line in the logs/console. So I guess it must be the IGNORE that doesn't work.
Any ideas, a tempignore.tcl somewhere?
Thx,
PB