diff options
Diffstat (limited to 'src/net/tmwa/generalhandler.cpp')
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index 79362a6d..f9ed97b0 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -108,7 +108,7 @@ GeneralHandler::GeneralHandler(): itemDb->setStatsList(stats); - listen("Game"); + listen(CHANNEL_GAME); } GeneralHandler::~GeneralHandler() @@ -217,10 +217,10 @@ void GeneralHandler::clearHandlers() mNetwork->clearHandlers(); } -void GeneralHandler::event(const std::string &channel, +void GeneralHandler::event(Channels channel, const Mana::Event &event) { - if (channel == "Game") + if (channel == CHANNEL_GAME) { if (event.getName() == "GuiWindowsLoaded") { |