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.

moxquiz error

Support & discussion of released scripts, and announcements of new releases.
Post Reply
a
ache
Voice
Posts: 14
Joined: Fri Oct 14, 2005 7:27 am

moxquiz error

Post by ache »

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: Select all

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: Select all

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]]]
    }
}
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

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
Post Reply