svn: 1697
@@ -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
@@ -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)
@@ -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;