Fixing branch problem.

This commit is contained in:
lotodore
2009-04-07 22:23:29 +00:00
parent b1b9215874
commit a3a7a7879e
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -1382,8 +1382,8 @@ ServerLobbyThread::IsPlayerBanned(const std::string &name) const
{
bool retVal = false;
boost::mutex::scoped_lock lock(m_banPlayerNameListMutex);
RegExList::const_iterator i = m_banPlayerNameList.begin();
RegExList::const_iterator end = m_banPlayerNameList.end();
RegexList::const_iterator i = m_banPlayerNameList.begin();
RegexList::const_iterator end = m_banPlayerNameList.end();
while (i != end)
{
if (regex_match(name, *i))
+2 -1
View File
@@ -102,6 +102,7 @@ protected:
typedef std::map<unsigned, boost::shared_ptr<ServerGameThread> > GameMap;
typedef std::map<std::string, boost::timers::portable::microsec_timer> TimerClientAddressMap;
typedef std::list<unsigned> RemoveGameList;
typedef std::list<boost::regex> RegexList;
// Main function of the thread.
virtual void Main();
@@ -191,7 +192,7 @@ private:
SessionIdList m_resubscribeList;
mutable boost::mutex m_resubscribeListMutex;
RegExList m_banPlayerNameList;
RegexList m_banPlayerNameList;
mutable boost::mutex m_banPlayerNameListMutex;
GameMap m_gameMap;