diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-08-01 18:00:41 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-08-01 18:29:00 -0400 |
commit | 0e189bbe81c88283438aabb4fec3ba30920d3a36 (patch) | |
tree | c3f4b454564c6335c972fadd64fbc82cf23db55e /src/localplayer.cpp | |
parent | 1937ef53c8dd42d986c0a6b061a482a6d8e3c0f7 (diff) | |
download | mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.gz mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.bz2 mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.xz mana-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.cpp | 8 |
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)) |