From 29c0c9e731694a40a6f2e41c6bdedb4b78e2b952 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Mar 2013 02:10:02 +0300 Subject: Add new notifications to guildhandler, guildmanager, inventoryhandler and partyhandler. --- src/net/ea/inventoryhandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/ea/inventoryhandler.cpp') diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index eceb194f9..9e751f27c 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -23,6 +23,7 @@ #include "net/ea/inventoryhandler.h" #include "localplayer.h" +#include "notifymanager.h" #include "gui/ministatuswindow.h" @@ -399,7 +400,7 @@ void InventoryHandler::processItemUseResponse(Net::MessageIn &msg) if (msg.readInt8() == 0) { - SERVER_NOTICE(_("Failed to use item.")) + NotifyManager::notify(NotifyManager::USE_FAILED); } else { @@ -565,7 +566,7 @@ void InventoryHandler::processPlayerEquip(Net::MessageIn &msg) const int flag = msg.readInt8(); if (!flag) - SERVER_NOTICE(_("Unable to equip.")) + NotifyManager::notify(NotifyManager::EQUIP_FAILED); else mEquips.setEquipment(getSlot(equipType), index); } -- cgit v1.2.3-70-g09d2