This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

How to code a tempignore?

Old posts that have not been replied to for several years.
Locked
b
barfman

Post by barfman »

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
User avatar
Yourname
Master
Posts: 358
Joined: Mon Sep 24, 2001 8:00 pm
Location: Toronto

Post by Yourname »

I remember seeing something similar to it on the eggheads ftp...
You might wanna check it out :smile:
Dormant egghead.
g
guppy
eggdrop engineer
Posts: 199
Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:

Post by guppy »

newignore takes a hostmask, $uhost isn't a hostmask.

Jeff
Locked