Kaynağa Gözat

* Add more debugs on PART

Bryan Drewery 16 yıl önce
ebeveyn
işleme
8edba540be

+ 3 - 1
src/mod/channels.mod/tclchan.c

@@ -803,8 +803,10 @@ int channel_modify(char *result, struct chanset_t *chan, int items, char **item,
 
   if (!conf.bot->hub && (chan != chanset_default)) {
     if ((old_status ^ chan->status) & (CHAN_INACTIVE | CHAN_BACKUP)) {
-      if (!shouldjoin(chan) && (chan->ircnet_status & (CHAN_ACTIVE | CHAN_PEND)))
+      if (!shouldjoin(chan) && (chan->ircnet_status & (CHAN_ACTIVE | CHAN_PEND))) {
+        putlog(LOG_MISC, "*", "In %s, but I shouldn't be, parting...", chan->dname);
         dprintf(DP_SERVER, "PART %s\n", chan->name);
+      }
       if (shouldjoin(chan) && !(chan->ircnet_status & (CHAN_ACTIVE | CHAN_PEND | CHAN_JOINING))) {
         dprintf(DP_SERVER, "JOIN %s %s\n", (chan->name[0]) ?
   			   chan->name : chan->dname,

+ 1 - 0
src/mod/irc.mod/chan.c

@@ -3003,6 +3003,7 @@ void check_should_cycle(struct chanset_t *chan)
     }
   }
   if (splitbotops > 5) {
+    sdprintf("Cycling %s", chan->dname);
     /* I'm only one opped here... and other side has some ops... so i'm cycling */
     if (localnonops) {
       /* need to unset any +kil first */

+ 2 - 0
src/mod/irc.mod/irc.c

@@ -1313,6 +1313,7 @@ reset_chan_info(struct chanset_t *chan)
 
   /* Don't reset the channel if we're already resetting it */
   if (!shouldjoin(chan)) {
+    sdprintf("Resetting %s but I shouldn't be there, parting...", chan->dname);
     dprintf(DP_MODE, "PART %s\n", chan->name);
     return;
   }
@@ -1486,6 +1487,7 @@ static void
 check_expired_chanstuff(struct chanset_t *chan)
 {
   if ((channel_active(chan) || channel_pending(chan)) && !shouldjoin(chan)) {
+    sdprintf("Active/Pending in %s but I shouldn't be there, parting...", chan->dname);
     dprintf(DP_MODE, "PART %s\n", chan->name[0] ? chan->name : chan->dname);
   } else if (channel_active(chan)) {
     masklist *b = NULL, *e = NULL;