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.

stop bot from reconnecting to fast

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

stop bot from reconnecting to fast

Post by sKy »

Sometimes in netsplit if some server is down the bot recognized that he got disconnected. Immediately the bot will try to reconnect.

The problem is that the bot is getting either "reconnect to fast", or "glined - to many clones from your host" (this is because the ghost of the bot seams to be still online).

Solution would be to stop the bot from reconnecting immediately and to give the connect command later. This could be done with scripting. But the connect to server is done automatically without a script, it`s the irc module.

Any idea how I could stop the bot from connecting anyway?
socketapi | Code less, create more.
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Code: Select all

# This settings makes the bot cycle forever through the server list until
# it successfully connects to one.
set never-give-up 1

# This setting defines how long Eggdrop should wait before moving from one
# server to another on disconnect. If you set 0 here, Eggdrop will not wait
# at all and will connect instantly. Setting this too low could result in
# your bot being K:Lined.
set server-cycle-wait 60

# Set here how long Eggdrop should wait for a response when connecting to a
# server before giving up and moving on to next server.
set server-timeout 60

# If the number of servers on the net gets below this number, the bot
# will jump to a new server (it will assume it's on the losing end of
# a netsplit). Set this to 0 to turn off. If your bot is running on
# any major IRC network, this should probably be turned off.
set servlimit 0

# Set this to 1 if Eggdrop should check for stoned servers? (where the
# server connection has died, but Eggdrop hasn't been notified yet).
set check-stoned 1
That might helps you in eggdrop.conf

Thanks
iamdeath
|AmDeAtH @ Undernet
Death is only the *Beginning*...
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Post by sKy »

Oh, I did not thought that there is a simple solution. :) I will try it, thanks.
socketapi | Code less, create more.
Post Reply