| View previous topic :: View next topic |
| Author |
Message |
ache Voice
Joined: 14 Oct 2005 Posts: 14
|
Posted: Fri Oct 28, 2005 2:08 pm Post subject: moxquiz error |
|
|
donīt know if this is the right place for this.
anyways....
I get errors from my trivia (moxquiz)
Hereīs the error i get:
| Code: |
Tcl error [moxquiz_purr]: syntax error in expression "($action == "ACTION" && $arg == "pats $botnick" &&
[...": looking for close parenthesis
|
I figured it was somewhere in here:
| Code: |
proc moxquiz_purr {nick host handle channel action arg} {
global quizconf allstarsarray
# [pending] translate this
set tlist [list "purrs." \
"meows." \
"happily hops around."]
if {($action == "ACTION" && $arg == "pats $botnick" &&
[mx_str_ieq $channel $quizconf(quizchannel)] &&
([validuser $handle] || [info exists allstarsarray($nick)]) } {
mxirc_action $quizconf(quizchannel) [lindex $tlist [rand [llength $tlist]]]
}
}
|
|
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Oct 28, 2005 3:07 pm Post subject: |
|
|
| Code: | proc moxquiz_purr {nick host handle channel action arg} {
global quizconf allstarsarray
# [pending] translate this
set tlist [list "purrs." \
"meows." \
"happily hops around."]
if {($action == "ACTION" && $arg == "pats $botnick" &&
[mx_str_ieq $channel $quizconf(quizchannel)] &&
([validuser $handle] || [info exists allstarsarray($nick)])} {
mxirc_action $quizconf(quizchannel) [lindex $tlist [rand [llength $tlist]]]
}
}
} |
Change to the above. That should fix it.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|