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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user