summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorKess Vargavind <vargavind@gmail.com>2009-02-16 17:22:38 +0100
committerJared Adams <jaxad0127@gmail.com>2009-03-10 05:16:03 -0600
commit881f3c693e2ac4d17f2e7109a809d1bd4c2f62c6 (patch)
treefd66ed57cf63ecffb76e0c0f6e88ea289fbe5424 /src/net
parent2d94d3d381c2cfdd0e66cbfcc0759c25df6b59be (diff)
downloadmana-881f3c693e2ac4d17f2e7109a809d1bd4c2f62c6.tar.gz
mana-881f3c693e2ac4d17f2e7109a809d1bd4c2f62c6.tar.bz2
mana-881f3c693e2ac4d17f2e7109a809d1bd4c2f62c6.tar.xz
mana-881f3c693e2ac4d17f2e7109a809d1bd4c2f62c6.zip
Expand the scope where item links work
This patch makes item links work in any chatLog() message, not only chatSend() as before. I enabled it for the "You picked <nr> <item>" message by explicitly adding [] around the item name in the string.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/inventoryhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp
index 243d1e79..7d33b419 100644
--- a/src/net/inventoryhandler.cpp
+++ b/src/net/inventoryhandler.cpp
@@ -163,7 +163,7 @@ void InventoryHandler::handleMessage(MessageIn *msg)
const std::string amountStr =
(amount > 1) ? toString(amount) : "a";
if (config.getValue("showpickupchat", true)) {
- chatWindow->chatLog(strprintf(_("You picked up %s %s"),
+ chatWindow->chatLog(strprintf(_("You picked up %s [%s]"),
amountStr.c_str(), itemInfo.getName().c_str()),
BY_SERVER);
}