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.

op error

Old posts that have not been replied to for several years.
Locked
P
Paiakam

Post by Paiakam »

hey. i have this in my tcl:

...
foreach bot [bots] {
if {[string tolower [hand2nick $bot $chan]] == [string tolower $vict]} {
if {[botisop $chan]} {return 0}
if {[islinked $bot]} {
utimer 3 {putbot $bot "gop op $chan $botnick"}
putlog "(**) Sending on-op oprequest to $bot on $chan"
...

i keep getting this error..
[22:49] Tcl error in script for 'timer15':
[22:49] can't read "bot": no such variable
if i add "global bot", it will give "chan" error.

help me plz :grin:
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

A better way to use utimer is like this:

utimer 3 [list somecmd arg1 arg2 ...]

Use that instead of your { and } and bob's your uncle.
P
Paiakam

Post by Paiakam »

thanks, uncle :grin:
Locked