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.

utimer problem

Old posts that have not been replied to for several years.
Locked
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

utimer problem

Post by Volume »

Code: Select all

set kick [putkick $chan $nick "wie uncool ;o"]
utimer 6 $kick
the kick is directly,
not after 6 seconds :(

Thank you for help
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Well correct me if I am wrong, but the minute you write:

Code: Select all

set kick [putkick $chan $nick "wie uncool ;o"]

The variable is set.

You should put it in a proc and try:

Code: Select all

proc delay_kick {channel nick} { 
  putkick $channel $nick "wie uncool ;o"
}
utimer 6 delay_kick $chan $nick
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As z_one said, however, you should use

Code: Select all

utimer 6 [list delay_kick $chan $nick]
In place of what he used for the utimer.
Locked