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.

timer doesn't work

Old posts that have not been replied to for several years.
Locked
User avatar
CrazyCat
Revered One
Posts: 1306
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

hi here.
I've a little script which act after someone enters a channel.

bind join - "*" delay

proc delay { nick uhost handle chan } {
timer 5 [putserv "PRIVMSG $nick :hello, I'm late of 5 minutes"]
}

It's a verification script for me, so it's really simple.
But I get the message immediatly after entering the channel... any idea?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

because you're executing the putserv immediatly by encasing it in brackets.
timer 5 [putserv "PRIVMSG $nick :hello, I'm late of 5 minutes"] basically means 'execute the putserv, then execute whatever the putserv returns after 5 mins'. you want something like
timer 5 [list putserv "PRIVMSG $nick :hello, I'm late of 5 minutes"]
User avatar
CrazyCat
Revered One
Posts: 1306
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

yes, it works :smile:))
OK, now I won't have any trouble with epona' services...
If shayne accept my tcl, you'll understand soon :smile:
Locked