Skip to content

Commit

Permalink
stickychan: stop checking so often, increase delay to once every 3 mi…
Browse files Browse the repository at this point in the history
…nutes
  • Loading branch information
Zarthus authored and DarthGandalf committed Dec 26, 2016
1 parent 2fcde9f commit e805823
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/stickychan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <znc/Chan.h>
#include <znc/IRCNetwork.h>

#define STICKYCHAN_TIMER_INTERVAL 180

using std::vector;

class CStickyChan : public CModule {
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit e805823

Please sign in to comment.