summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-09 15:59:51 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-09 16:15:02 +0300
commit25da12e98285c44279d24ee77a08bd5f563d8ad0 (patch)
tree6f67b770cebe0f76119113c795ee6856af320154 /src/net/ea/chathandler.cpp
parentd7e0bbcc76bd6548975dfd30a50910d4967cad55 (diff)
downloadplus-25da12e98285c44279d24ee77a08bd5f563d8ad0.tar.gz
plus-25da12e98285c44279d24ee77a08bd5f563d8ad0.tar.bz2
plus-25da12e98285c44279d24ee77a08bd5f563d8ad0.tar.xz
plus-25da12e98285c44279d24ee77a08bd5f563d8ad0.zip
Add new notifications in some other classes.
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index b2c6154b3..9f67bfbcf 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -26,6 +26,7 @@
#include "configuration.h"
#include "guildmanager.h"
#include "localplayer.h"
+#include "notifymanager.h"
#include "playerrelations.h"
#include "gui/chatwindow.h"
@@ -353,14 +354,9 @@ void ChatHandler::processMVP(Net::MessageIn &msg)
{
const Being *const being = actorSpriteManager->findBeing(id);
if (!being)
- {
- localChatTab->chatLog(_("MVP player."), BY_SERVER);
- }
+ NotifyManager::notify(NotifyManager::MVP_PLAYER, "");
else
- {
- localChatTab->chatLog(_("MVP player: ")
- + being->getName(), BY_SERVER);
- }
+ NotifyManager::notify(NotifyManager::MVP_PLAYER, being->getName());
}
}
@@ -378,12 +374,11 @@ void ChatHandler::processIgnoreAllResponse(Net::MessageIn &msg)
switch (fail)
{
case 0:
- localChatTab->chatLog(_("All whispers ignored."),
- BY_SERVER);
+ NotifyManager::notify(NotifyManager::WHISPERS_IGNORED);
break;
default:
- localChatTab->chatLog(_("All whispers ignore failed."),
- BY_SERVER);
+ NotifyManager::notify(NotifyManager::
+ WHISPERS_IGNORE_FAILED);
break;
}
break;
@@ -393,12 +388,11 @@ void ChatHandler::processIgnoreAllResponse(Net::MessageIn &msg)
switch (fail)
{
case 0:
- localChatTab->chatLog(_("All whispers unignored."),
- BY_SERVER);
+ NotifyManager::notify(NotifyManager::WHISPERS_UNIGNORED);
break;
default:
- localChatTab->chatLog(_("All whispers unignore failed."),
- BY_SERVER);
+ NotifyManager::notify(NotifyManager::
+ WHISPERS_UNIGNORE_FAILED);
break;
}
break;