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.

Leave after kick

Old posts that have not been replied to for several years.
Locked
X
Xerxes

Post by Xerxes »

I wrote a script that makes the bot leaves after being kicked from a channel. Unfortunately the bot crashes right after being kicked. The same goes for trying to leave a channel after someone changes his nick. Does anyone know how I can get the bot to leave the channel after it is kicked?
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

You might want to send in a bug-report and hopefully it can be fixed in the next release. Read doc/BUG-REPORT on how to do so.
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

since he didn't mention what version he's running, i'd tell him to test on very latest version first (1.6.:razz:
X
Xerxes

Post by Xerxes »

Actually I run a Windrop, version 1.6.8. Hope that counts 2 :smile: And maybe someone has a script that avoids this bug or something.
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

uggh, windows. its probably 90% certain thats the cause of your error. if you can reproduce it on *nix then its a bug, otherwise its prolly just some wierd windows sideeffect.
X
Xerxes

Post by Xerxes »

I'll try it on Linux tomorrow (or maybe today if I have time). Let's hope it's Windows...
X
Xerxes

Post by Xerxes »

It's NOT a Windows bug, so I'll send in the error report this afternoon :smile:
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

I'm assuming that when you say "leave the channel" you mean "delete the channel", since just sending "PART $chan" shouldn't ever crash the bot.

Try putting the code in a timer so that it doesn't get executed during the kick/nick bind.

Code: Select all

utimer 0 [list channel remove $chan]
You might have to do utimer 1 instead of 0, but 0 should work.
X
Xerxes

Post by Xerxes »

I tried your suggestions, and now the bot doesn't crash anymore. Instead it prints this over and over again:

# Context: tclhash.c/680 []
Identd Already Disabled. <Tried to Close>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

That sounds like another error. Maybe the builtin ident server that comes with windrop? Try it on linux again to be sure :smile:
Locked