]> jfr.im git - irc/evilnet/znc.git/commitdiff
stickychan: stop checking so often, increase delay to once every 3 minutes
authorJos Ahrens <redacted>
Fri, 21 Oct 2016 10:27:54 +0000 (10:27 +0000)
committerAlexey Sokolov <redacted>
Mon, 26 Dec 2016 20:08:52 +0000 (20:08 +0000)
modules/stickychan.cpp

index 8c0a89b886038e6dc91c45b2c5c067fd18b96d06..e0627127610fd851218972c056824fef0e03185f 100644 (file)
@@ -17,6 +17,8 @@
 #include <znc/Chan.h>
 #include <znc/IRCNetwork.h>
 
+#define STICKYCHAN_TIMER_INTERVAL 180
+
 using std::vector;
 
 class CStickyChan : public CModule {
@@ -236,7 +238,7 @@ bool CStickyChan::OnLoad(const CString& sArgs, CString& sMessage) {
     // Since we now have these channels added, clear the argument list
     SetArgs("");
 
-    AddTimer(RunTimer, "StickyChanTimer", 15);
+    AddTimer(RunTimer, "StickyChanTimer", STICKYCHAN_TIMER_INTERVAL);
     return (true);
 }