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 kick with kickinfo

Help for those learning Tcl or writing their own scripts.
Post Reply
Z
Zerg
Halfop
Posts: 49
Joined: Sat May 20, 2006 10:03 am

utimer kick with kickinfo

Post by Zerg »

hello, i have a problem with a timerkick include kickinfo...
without kickinfo this works without problems but i need the kickinfo...

set kickAbC "putkick $chan $nick 'This is not allowed...'"
utimer 10 $kickAbC

<egg> [16:20] Tcl error in script for 'timer350':
<egg> [16:20] wrong # args: should be "putkick channel nick?s? ?comment?"


This works without kickinfo:
set kickAbC "putkick $chan $nick"
utimer 10 $kickAbC

Thank you for help
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Code: Select all

set kickAbC "[list putkick $chan $nick "your reason goes here"]"
Try this ;)

Edit: added the list element as sirfz did to protect utimer events..
Last edited by speechles on Fri May 02, 2008 11:45 am, edited 1 time in total.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

utimer 10 [list putkick $chan $nick "reason here"]
Post Reply