this would be a major problem in chanlimitVerify@IrcHelpers.pl since
it's called for every join. Better safe than sorry.
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@441
c11ca15a-4712-0410-83d8-
924469b57eb5
&WARN("clc: stupid to have plus at $plus, fix it!");
}
+ if (exists $cache{chanlimitChange_$chan}) {
+ if (time() - $cache{chanlimitChange_$chan} < 60) {
+ &DEBUG("not going to change chanlimit!");
+ return;
+ }
+ delete $cache{chanlimitChange_$chan};
+ }
+
### todo: check if we have ops.
### todo: if not, check if nickserv/chanserv is avail.
### todo: unify code with chanlimitcheck()
&status("ChanLimit: setting for first time or from netsplit, for $chan");
}
+ if (exists $cache{chanlimitChange_$chan}) {
+ if (time() - $cache{chanlimitChange_$chan} < 60) {
+ &DEBUG("not going to change chanlimit!");
+ return;
+ }
+ delete $cache{chanlimitChange_$chan};
+ }
+
&rawout("MODE $chan +l $newlimit");
+ $cache{chanlimitChange_$chan} = time();
}
}