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.

failed GO (i'm blind)

General support and discussion of Eggdrop bots.
Post Reply
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

failed GO (i'm blind)

Post by hm2k »

I've just reenabled the "GO" function to "getops" by making the bot hop the channel if not currently opped.

This function works by msging the other bots to part the channel as an attempt to regain it.

The problem i'm finding is that the bots aren't leaving at the same time, or aren't staying out long enough, so they aren't regaining ops.

This is the core code...

Code: Select all

    if (!(chan->status & CHAN_ACTIVE)) {
      putlog(LOG_CMDS, "*", "(%s!%s) !%s! failed GO (i'm blind)", nick, host,
	     u->handle);
      return 1;
    }
What can be done to fix this so the bots do this correctly?
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

Unfortunately, using '/msg go' is subject to server lag times.
It's best to have set the channel +inactive on all bot except one, then the bot should cycle to gain ops (as long as the channel is set +cycle).
Post Reply