X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..c0fa85ff6e91e2ad63d86bffad45a66164d9e24a:/projects/stargazer/users.h?ds=sidebyside diff --git a/projects/stargazer/users.h b/projects/stargazer/users.h index e882dcc1..22065367 100644 --- a/projects/stargazer/users.h +++ b/projects/stargazer/users.h @@ -56,7 +56,7 @@ class PROPERTY_NOTIFER_IP_BEFORE: public PROPERTY_NOTIFIER_BASE public: PROPERTY_NOTIFER_IP_BEFORE(USERS & us, user_iter u) : users(us), user(u) {}; void Notify(const uint32_t & oldValue, const uint32_t & newValue); - user_iter GetUser() { return user; }; + user_iter GetUser() const { return user; }; private: USERS & users; user_iter user; @@ -67,7 +67,7 @@ class PROPERTY_NOTIFER_IP_AFTER: public PROPERTY_NOTIFIER_BASE public: PROPERTY_NOTIFER_IP_AFTER(USERS & us, user_iter u) : users(us), user(u) {}; void Notify(const uint32_t & oldValue, const uint32_t & newValue); - user_iter GetUser() { return user; }; + user_iter GetUser() const { return user; }; private: USERS & users; user_iter user; @@ -119,8 +119,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);