summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-08-01 18:00:41 -0400
committerChuck Miller <shadowmil@gmail.com>2010-08-01 18:29:00 -0400
commit0e189bbe81c88283438aabb4fec3ba30920d3a36 (patch)
treec3f4b454564c6335c972fadd64fbc82cf23db55e /src/localplayer.cpp
parent1937ef53c8dd42d986c0a6b061a482a6d8e3c0f7 (diff)
downloadmana-client-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.gz
mana-client-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.bz2
mana-client-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.xz
mana-client-0e189bbe81c88283438aabb4fec3ba30920d3a36.zip
Reduce localChatTab presence replacing it with the event system
Reviewed-By: Jared Adams
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index f8d0ae0e..11fdf44c 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -24,6 +24,7 @@
#include "client.h"
#include "configuration.h"
#include "effectmanager.h"
+#include "eventmanager.h"
#include "flooritem.h"
#include "graphics.h"
#include "guild.h"
@@ -1000,7 +1001,7 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount)
{
if (config.getValue("showpickupchat", 1))
{
- localChatTab->chatLog(_("Unable to pick up item."), BY_SERVER);
+ SERVER_NOTICE(_("Unable to pick up item."))
}
}
else
@@ -1009,10 +1010,9 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount)
{
// TRANSLATORS: This sentence may be translated differently
// for different grammatical numbers (singular, plural, ...)
- localChatTab->chatLog(strprintf(ngettext("You picked up %d "
+ SERVER_NOTICE(strprintf(ngettext("You picked up %d "
"[@@%d|%s@@].", "You picked up %d [@@%d|%s@@].", amount),
- amount, itemInfo.getId(), itemInfo.getName().c_str()),
- BY_SERVER);
+ amount, itemInfo.getId(), itemInfo.getName().c_str()))
}
if (mMap && config.getValue("showpickupparticle", 0))