]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/timesynctimer.cpp
Move QuitUser into UserManager class, and unstaticize it. This prepares for some...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / timesynctimer.cpp
index 8efaf7d64649f73b494acb9ebb16439e2939b8fc..bea28f1e45638b7916e1df8c54ba85ece9b66df0 100644 (file)
@@ -1,11 +1,20 @@
-#include "configreader.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#include "inspircd.h"
 #include "commands/cmd_whois.h"
 #include "commands/cmd_stats.h"
 #include "socket.h"
-#include "inspircd.h"
 #include "wildcard.h"
 #include "xline.h"
 #include "transport.h"
 
 /* $ModDep: m_spanningtree/timesynctimer.h m_spanningtree/resolvers.h m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/link.h m_spanningtree/treesocket.h */
 
-TimeSyncTimer::TimeSyncTimer(InspIRCd *Inst, ModuleSpanningTree *Mod) : InspTimer(10, Inst->Time(), true), Instance(Inst), Module(Mod)
+CacheRefreshTimer::CacheRefreshTimer(InspIRCd *Inst, SpanningTreeUtilities *Util) : Timer(3600, Inst->Time(), true), Instance(Inst), Utils(Util)
 {
 }
 
-void TimeSyncTimer::Tick(time_t TIME)
+void CacheRefreshTimer::Tick(time_t TIME)
 {
-       Module->BroadcastTimeSync();
-       Instance->Log(DEBUG,"TICK!");
+       Utils->RefreshIPCache();
 }