Răsfoiți Sursa

Can't rebalance roles in .reset until after WHO is done due to PENDING channel.

Issue #39
Bryan Drewery 10 ani în urmă
părinte
comite
91b35df4c9
2 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 0
      src/mod/irc.mod/chan.cc
  2. 0 1
      src/mod/irc.mod/irc.cc

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

@@ -2142,6 +2142,7 @@ static int got315(char *from, char *msg)
   } else {
     me->is_me = 1;
     me->joined = now;				/* set this to keep the whining masses happy */
+    rebalance_roles_chan(chan);
     if (me_op(chan))
       recheck_channel(chan, 2);
     else if (chan->channel.members == 1)

+ 0 - 1
src/mod/irc.mod/irc.cc

@@ -1313,7 +1313,6 @@ reset_chan_info(struct chanset_t *chan)
     send_chan_who(DP_MODE, chan, 1);
     /* clear_channel nuked the data...so */
     dprintf(DP_HELP, "TOPIC %s\n", chan->name);//Topic is very low priority
-    rebalance_roles_chan(chan);
   }
 }