attempt to fix delay of irc client

This commit is contained in:
Mark Vejvoda
2013-05-15 04:49:57 +00:00
parent a6e6ab8f53
commit febbf5012c
2 changed files with 140 additions and 26 deletions

View File

@@ -71,7 +71,10 @@ protected:
string playerName;
bool hasJoinedChannel;
Mutex mutexEventDataDone;
bool eventDataDone;
Mutex mutexNickList;
time_t lastNickListUpdate;
std::vector<string> eventData;
@@ -100,12 +103,12 @@ public:
void SendIRCCmdMessage(string target, string msg);
std::vector<string> getNickList();
bool isConnected();
bool isConnected(bool mutexLockRequired=true);
std::vector<string> GetIRCConnectedNickList(string target, bool waitForCompletion);
bool getEventDataDone() const { return eventDataDone; }
void setEventDataDone(bool value) { eventDataDone=value; }
bool getEventDataDone();
void setEventDataDone(bool value);
bool getHasJoinedChannel() const { return hasJoinedChannel; }
void setHasJoinedChannel(bool value) { hasJoinedChannel=value; }