Added support for password protected irc channels. Added server IRC mode for admin use, to allow requesting statistics and kicking players.

This commit is contained in:
lotodore
2007-11-16 00:58:23 +00:00
parent 991c4367e2
commit cdd21250de
14 changed files with 277 additions and 50 deletions
+5
View File
@@ -50,6 +50,7 @@ public:
const std::string &GetName() const;
void AddSession(SessionWrapper session);
void KickPlayer(unsigned playerId);
ServerCallback &GetCallback();
GameState GetCurRound() const;
@@ -80,6 +81,7 @@ protected:
// Main function of the thread.
virtual void Main();
void KickPlayerLoop();
void InternalStartGame();
void ResetGame();
@@ -129,6 +131,9 @@ private:
PlayerDataList m_computerPlayerList;
mutable boost::mutex m_computerPlayerListMutex;
PlayerIdList m_kickPlayerList;
mutable boost::mutex m_kickPlayerListMutex;
unsigned m_adminPlayerId;
mutable boost::mutex m_adminPlayerIdMutex;