Forward all lobby chat messages to irc admin bot. Game chat is still private, so don't worry :-).

This commit is contained in:
lotodore
2009-08-20 11:42:13 +00:00
parent 0aa285621b
commit 460090e383
6 changed files with 50 additions and 9 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ ServerManager::~ServerManager()
void
ServerManager::Init(unsigned serverPort, bool ipv6, ServerNetworkMode mode, const string &pwd, const string &logDir, boost::shared_ptr<IrcThread> ircThread)
{
m_lobbyThread.reset(new ServerLobbyThread(GetGui(), m_playerConfig, m_avatarManager, m_ioService));
m_lobbyThread.reset(new ServerLobbyThread(GetGui(), *m_ircBot, m_playerConfig, m_avatarManager, m_ioService));
GetLobbyThread().Init(pwd, logDir);
m_ircBot->Init(m_lobbyThread, ircThread);