I am getting a weird error when I try to start my eggdrop.
I have two similar procs one to handle public commands and one to handle msg commands. Both result in the same error. When I move one proc above the other in my code, the error seems to stay on the same line (perhaps there's something wrong with both my procs?).
[00:57] Tcl error in file 'eggdrop.conf':
[00:57] wrong # args: should be "proc name args body"
while executing
"proc do_commandsm {which nick uhost hand args} "
(file "scripts/tqobot/commands.tcl" line 1)
invoked from within
"source scripts/tqobot/commands.tcl"
(file "scripts/tqobot.tcl" line 21)
invoked from within
"source scripts/tqobot.tcl"
(file "eggdrop.conf" line 1334)
[00:57] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
here is the beginning 10 lines of the proc commandsm:
Code: Select all
proc do_commandsm {which nick uhost hand args} {
global botnick att Nickserv Chanserv
regsub -all {\{} $args "" args
regsub -all {\}} $args "" args
regsub -all {\"} $args "" args
regsub -all {\'} $args "" args
set att_cmd [lindex $args 0]
set att_string [lrange $args 1 end]
set att_string2 [lrange $args 2 end]
set att_arg1 [lindex $args 1]
set att_arg2 [lindex $args 2]
set att_arg3 [lindex $args 3]
... more stuff ...
}

Anyone ever had this error before? Any way to fix this?
Thanks!