summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-06 22:41:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-07 02:07:03 +0300
commita51da75e329df773a01e963c3a27e72cf487138c (patch)
treec48d7c682be1104138dd16daa75fd12a3fcae82b /src/net/ea/chathandler.cpp
parent4f7e38d218848bd34bd86dda75446881dad2bb32 (diff)
downloadmv-a51da75e329df773a01e963c3a27e72cf487138c.tar.gz
mv-a51da75e329df773a01e963c3a27e72cf487138c.tar.bz2
mv-a51da75e329df773a01e963c3a27e72cf487138c.tar.xz
mv-a51da75e329df773a01e963c3a27e72cf487138c.zip
fix code style.
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp19
1 files changed, 10 insertions, 9 deletions
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 <string>
#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;
}