]> git.stg.codes - stg.git/blobdiff - projects/stargazer/users.h
Merge branch 'master' of madf.dyndns.org:/var/git/stg
[stg.git] / projects / stargazer / users.h
index 07c9c102cdd63402c3aef504cffed2b8b0867959..424958da4d465ba78a221a211ccecd4c3e738f0d 100644 (file)
@@ -29,6 +29,7 @@ $Author: faust $
 #define USERS_H
 
 #include <pthread.h>
+
 #include <ctime>
 #include <string>
 #include <map>
@@ -119,8 +120,6 @@ public:
     int             Start();
     int             Stop();
 
-    int             SendMessage(const string & login, time_t sndTtime, time_t showTime, char type, const string & text) const;
-
 private:
     void            AddToIPIdx(user_iter);
     void            DelFromIPIdx(uint32_t ip);
@@ -138,11 +137,11 @@ private:
     void            DelUserFromIndexes(user_iter user);
 
     static void *   Run(void *);
-    void            NewMinute(const struct tm * t);
-    void            NewDay(const struct tm * t);
-    void            DayResetTraff(const struct tm * t);
+    void            NewMinute(const struct tm & t);
+    void            NewDay(const struct tm & t);
+    void            DayResetTraff(const struct tm & t);
 
-    bool            TimeToWriteDetailStat(const struct tm * t);
+    bool            TimeToWriteDetailStat(const struct tm & t);
 
     list<USER>          users;
     list<USER_TO_DEL>   usersToDelete;