egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

failed GO (i'm blind)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
hm2k
Halfop


Joined: 11 Sep 2006
Posts: 57
Location: UK

PostPosted: Tue Mar 25, 2008 4:42 pm    Post subject: failed GO (i'm blind) Reply with quote

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:
    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?
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Tue Mar 25, 2008 11:33 pm    Post subject: Reply with quote

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).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber