jamesoff / bmotion

An Artificial Stupidity script for eggdrop bots
Other
60 stars 16 forks source link

Tcl error #21

Closed razoarmani closed 10 years ago

razoarmani commented 10 years ago

When someone quits or parts the channel, I get this error:

«06:12:12» * Amanda_ Quit (Ping timeout) «06:12:11» [22:12:10] Tcl error [bMotion_event_onquit]: expected integer but got "s"


«06:12:29» * blacksea__ has left the channel «06:12:29» [22:12:27] Tcl error [bMotion_event_onpart]: expected integer but got "s"

Please help:)

veb commented 10 years ago

Could be the nick.

#TODO: Fix this? Passing a cleaned nick around can break things
set nick [bMotion_cleanNick $nick $handle]

Can you provide any other details? I notice that your nicknames did have underscores. Eggdrop version, bMotion etc.

jamesoff commented 10 years ago

Could you try enabling some more debug output? TCL is unhelpful at telling me where the error actually occurred. You can do it with .console +d1, then get a client to quit/part a channel bMotion is enabled on and you should get more output before the error. You can go back to normal with .console -d1 afterwards.

Is it "s" every time in that error? Sounds like I've typoed a parameter name or something....

jamesoff commented 10 years ago

I can reproduce this by setting the friendly setting in settings.tcl to s. (One of the things I can see my code compares as an integer.) Can you double-check your local/settings.tcl and check that setting? It's supposed to be 0, 1 or 2.

razoarmani commented 10 years ago
[09:55:19](1)bMotion: Checking #USA for white-steve in the brig [09:55:19](1)bMotion: plugin complex:startrek tried to get non-existent value brig,#usa,_ [09:55:19](d)bMotion: Using handle white-steve as flood target (was white-steve) [09:55:19](1)bMotion: matched irc event plugin, running callback bMotion_plugins_irc_default_quit [09:55:19] Tcl error [bMotion_event_onquit]: expected integer but got "s" --- also this is from settings: set bMotionSettings(friendly) 0
jamesoff commented 10 years ago

Found it :)

veb commented 10 years ago

Oh well. I wasn't much help. :D

On Sat, May 31, 2014 at 11:29 PM, James Seward notifications@github.com wrote:

Found it :)

— Reply to this email directly or view it on GitHub https://github.com/jamesoff/bmotion/issues/21#issuecomment-44745823.

jamesoff commented 10 years ago

@veb I appreciate the assistance either way :)