Let the server irc bot reconnect once every day.

This commit is contained in:
lotodore
2008-11-02 21:25:42 +00:00
parent eff1919831
commit 9943e34d4a
5 changed files with 55 additions and 6 deletions
+3 -2
View File
@@ -31,7 +31,8 @@ struct IrcContext;
class IrcThread : public Thread
{
public:
IrcThread(IrcCallback &callback);
IrcThread(const IrcThread &other);
IrcThread(IrcCallback *callback);
virtual ~IrcThread();
// Set the parameters.
@@ -58,7 +59,7 @@ protected:
private:
boost::shared_ptr<IrcContext> m_context;
IrcCallback &m_callback;
IrcCallback *m_callback;
boost::timers::portable::microsec_timer m_terminationTimer;
boost::timers::portable::microsec_timer m_lastConnectTimer;