Ver código fonte

* Fixed chanset limit not being set every 2 minutes.

svn: 1697
Bryan Drewery 21 anos atrás
pai
commit
214da3491c
3 arquivos alterados com 7 adições e 1 exclusões
  1. 1 0
      doc/UPDATES
  2. 5 1
      src/mod/channels.mod/channels.c
  3. 1 0
      src/mod/irc.mod/chan.c

+ 1 - 0
doc/UPDATES

@@ -49,6 +49,7 @@ This is a summary of ChangeLog basically.
 * All bots are now spawned with -B regardless of order in config.
 * +m no longer implies +j.
 * Fixed irc authing only working on +c bots (should be like this, but isnt needed soon)
+* Fixed chanset limit not being set every 2 minutes.
 
 1.2
 * No longer displaying SALTS on ./bin -v

+ 5 - 1
src/mod/channels.mod/channels.c

@@ -408,6 +408,7 @@ channels_timers()
 {
   static int cnt = 0;
   struct chanset_t *chan_n = NULL;
+  bool reset = 0;
 
   cnt += 10;		/* function is called every 10 seconds */
   
@@ -421,12 +422,15 @@ channels_timers()
     }
     if ((cnt % 60) == 0) {
       /* 60 seconds */
-      cnt = 0;
+      reset = 1;
 #ifdef LEAF
       check_limitraise(chan);
 #endif /* LEAF */
     }
   }
+
+  if (reset)
+    cnt = 0;
 }
 
 static void got_sj(int idx, char *code, char *par) 

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

@@ -1354,6 +1354,7 @@ static int got341(char *from, char *msg)
         cache->timeval = now;
         notice_invite(chan, cache->handle[0] ? cache->handle : NULL, nick, cache->uhost, cchan->op);
 
+//        cache_del_chan_parm(cache, cache->cchan);
         break;
       }
     }