Implementing ticket #47 Automatic notifications before server restart.

This commit is contained in:
lotodore
2011-02-10 22:16:36 +00:00
parent af8e2fc63a
commit 387739c84f
5 changed files with 89 additions and 5 deletions
+7 -1
View File
@@ -22,6 +22,7 @@
#define _SERVERADMINBOT_H_
#include <boost/asio.hpp>
#include <boost/thread.hpp>
#include <third_party/boost/timers.hpp>
#include <string>
#include <list>
@@ -69,10 +70,15 @@ protected:
private:
std::string m_ircNick;
mutable boost::mutex m_notifyMutex;
int m_notifyTimeoutMinutes;
int m_notifyIntervalMinutes;
int m_notifyCounter;
boost::shared_ptr<ServerLobbyThread> m_lobbyThread;
boost::shared_ptr<IrcThread> m_ircAdminThread;
boost::timers::portable::microsec_timer m_ircRestartTimer;
boost::timers::portable::second_timer m_ircRestartTimer;
boost::timers::portable::second_timer m_notifyTimer;
};
#endif