summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-23 20:07:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-23 20:07:10 +0000
commit612bb6602616f7ec5bd2c983500336f7eff419e0 (patch)
tree13f29a8d0925a38fdd5bef39f520ebd3ed0b14a6
parentb8717363a9394c3776c77932e2ef82373b877eba (diff)
Removed bit of logging that said the timer was ticking -- we know it works now :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3309 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_safelist.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index b3dfc93b9..127990051 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -41,22 +41,28 @@ class ListData
typedef std::vector<userrec *> UserList;
UserList listusers; /* vector of people doing a /list */
+/*
+ * To create a timer which recurs every second, we inherit from InspTimer.
+ * InspTimer is only one-shot however, so at the end of each Tick() we simply
+ * insert another of ourselves into the pending queue :)
+ */
class ListTimer : public InspTimer
{
private:
+
Server* Srv;
+ char buffer[MAXBUF];
+ chanrec *chan;
+
public:
+
ListTimer(long interval, Server* Me) : InspTimer(interval,TIME), Srv(Me)
{
}
virtual void Tick(time_t TIME)
{
- log(DEBUG,"*** Timer tick!");
-
bool go_again = true;
- chanrec *chan;
- char buffer[MAXBUF];
while (go_again)
{