| View previous topic :: View next topic |
| Author |
Message |
hm2k Halfop

Joined: 11 Sep 2006 Posts: 57 Location: UK
|
Posted: Tue Mar 25, 2008 4:42 pm Post subject: failed GO (i'm blind) |
|
|
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 |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Tue Mar 25, 2008 11:33 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|