diff options
author | Kess Vargavind <vargavind@gmail.com> | 2009-02-16 17:22:38 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-10 07:31:37 -0600 |
commit | 3f322e9eec45751686c59ec89bee46d1da34c885 (patch) | |
tree | 83f134319521c06700a9b59fdf7a38faa5f63329 /src/net | |
parent | ec838fe4abf3d1003c654d3b6902a4f145d0fb5a (diff) | |
download | mana-3f322e9eec45751686c59ec89bee46d1da34c885.tar.gz mana-3f322e9eec45751686c59ec89bee46d1da34c885.tar.bz2 mana-3f322e9eec45751686c59ec89bee46d1da34c885.tar.xz mana-3f322e9eec45751686c59ec89bee46d1da34c885.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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp index 553ec8fd..9fcfedf1 100644 --- a/src/net/inventoryhandler.cpp +++ b/src/net/inventoryhandler.cpp @@ -164,7 +164,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); } |