From a51da75e329df773a01e963c3a27e72cf487138c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 Jun 2014 22:41:39 +0300 Subject: fix code style. --- src/net/ea/chathandler.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/net/ea/chathandler.cpp') diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 40dc15a15..5c972db6b 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -25,7 +25,6 @@ #include "actormanager.h" #include "configuration.h" #include "guildmanager.h" -#include "notifications.h" #include "notifymanager.h" #include "being/localplayer.h" @@ -36,10 +35,12 @@ #include "gui/widgets/tabs/gmtab.h" -#include "gui/widgets/tabs/chattab.h" - #include "net/messagein.h" +#include "resources/notifytypes.h" + +#include "utils/gettext.h" + #include #include "debug.h" @@ -423,9 +424,9 @@ void ChatHandler::processMVP(Net::MessageIn &msg) const { const Being *const being = actorManager->findBeing(id); if (!being) - NotifyManager::notify(NotifyManager::MVP_PLAYER, ""); + NotifyManager::notify(NotifyTypes::MVP_PLAYER, ""); else - NotifyManager::notify(NotifyManager::MVP_PLAYER, being->getName()); + NotifyManager::notify(NotifyTypes::MVP_PLAYER, being->getName()); } BLOCK_END("ChatHandler::processMVP") } @@ -448,10 +449,10 @@ void ChatHandler::processIgnoreAllResponse(Net::MessageIn &msg) const switch (fail) { case 0: - NotifyManager::notify(NotifyManager::WHISPERS_IGNORED); + NotifyManager::notify(NotifyTypes::WHISPERS_IGNORED); break; default: - NotifyManager::notify(NotifyManager:: + NotifyManager::notify(NotifyTypes:: WHISPERS_IGNORE_FAILED); break; } @@ -462,10 +463,10 @@ void ChatHandler::processIgnoreAllResponse(Net::MessageIn &msg) const switch (fail) { case 0: - NotifyManager::notify(NotifyManager::WHISPERS_UNIGNORED); + NotifyManager::notify(NotifyTypes::WHISPERS_UNIGNORED); break; default: - NotifyManager::notify(NotifyManager:: + NotifyManager::notify(NotifyTypes:: WHISPERS_UNIGNORE_FAILED); break; } -- cgit v1.2.3-60-g2f50