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.

Tcl error

Old posts that have not been replied to for several years.
Locked
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Tcl error

Post by z_one »

Hi,

I restarted my bot and here's what I got:
Tcl error [sl_nkflood]: illegal channel: *
The bot is running normally though (I am using netbots v4.05).
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

the error describes itself. u probably set some variable to "*" while it shouldn't be that way.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Yes maybe, but I didn't set that variable.
It's a netbots variable.
Perhaps Slennox can help.
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

It looks like eggdrop might be calling sl_nkflood with the chan argument set to "*". I did a basic search of sentinel.tcl, and it doesn't call this proc itself, so it has to be the bind.

Assuming that's the problem, we'd need to find out why your bot is triggering the nick bind with the chan argument given as "*".

What version of eggdrop is it?
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Hi and sorry for the late reply.
I am using eggdrop 1.6.15
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

Can you reproduce it? If so then we might be able modify the proc to catch whatever's causing it.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Ok, I'll try to ... I'll get back to you as soon as I have more details.
I'll be basically checking for errors when a nick change occurs on the channel.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

doc/UPDATES1.6 (since 1.6.14):

bind NICK now gets triggered even if the nickname isn't found in any channels (i.e. when the bot's nickname changes before it joins channels)
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Hi,

I assume you're talking about the eggdrop's own nick being changed.
But the error occurs even when the bot has been sitting on the channel for days (and it hasn't changed its own nick).
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

z_one wrote:I assume you're talking about the eggdrop's own nick being changed.
But the error occurs even when the bot has been sitting on the channel for days (and it hasn't changed its own nick).
Some ircds get a little confused some times and display the quits of people that have been to a channel you're on, even if they're not there at the time they're quitting. I think I've seen this happen with nick changes too.
Last edited by user on Mon Aug 11, 2003 9:18 am, edited 1 time in total.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

I couldn't agree more.
I was always puzzled to see the message nick has quit even when that nick was not on any channel I was on at the time of the message.
Thanks for clarifying that point.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Edit:never mind.
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

I'm a bit preoccupied at the moment (switching to a new OS) so I don't have time to release a new version, but here's a temporary fix:

Code: Select all

proc sl_nkflood {nick uhost hand chan newnick} {
  global botnet-nick botnick sl_ban sl_banmax sl_flooded sl_globalban sl_locked sl_nickkick sl_nkbanhost sl_nkflood sl_nkflooding sl_nkqueue
  if {![validchan $chan]} {return 0}
  set chan [string tolower $chan]
The third line (the validchan check) is the one you need to add. This is based on 4.09 but I'm pretty sure it should be fine for 4.05 and the standalone 2.70 as well.

Remember that you don't need my permission to fix it (I'll replace my poor excuse for a software licence with the GPL to make this more obvious) :)
Locked