summaryrefslogtreecommitdiff
path: root/src/net/ea
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
parentd7e0bbcc76bd6548975dfd30a50910d4967cad55 (diff)
downloadmanaverse-25da12e98285c44279d24ee77a08bd5f563d8ad0.tar.gz
manaverse-25da12e98285c44279d24ee77a08bd5f563d8ad0.tar.bz2
manaverse-25da12e98285c44279d24ee77a08bd5f563d8ad0.tar.xz
manaverse-25da12e98285c44279d24ee77a08bd5f563d8ad0.zip
Add new notifications in some other classes.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/chathandler.cpp24
-rw-r--r--src/net/ea/tradehandler.cpp1
2 files changed, 9 insertions, 16 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;
diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp
index 12f29c4e7..3a401349a 100644
--- a/src/net/ea/tradehandler.cpp
+++ b/src/net/ea/tradehandler.cpp
@@ -22,7 +22,6 @@
#include "net/ea/tradehandler.h"
-#include "depricatedevent.h"
#include "inventory.h"
#include "item.h"
#include "logger.h"