summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-06 17:38:12 -0700
committerIra Rice <irarice@gmail.com>2009-02-06 17:38:12 -0700
commit1458c6b808afaf3af2f1f50f1988427edf64826c (patch)
tree711b48bb56ff05fa333cc4ef984a37839045cfe9 /src/gui/chat.cpp
parentb7c33d7ec26735bade5c6e8a2ff9d06586cc7d0c (diff)
downloadmana-1458c6b808afaf3af2f1f50f1988427edf64826c.tar.gz
mana-1458c6b808afaf3af2f1f50f1988427edf64826c.tar.bz2
mana-1458c6b808afaf3af2f1f50f1988427edf64826c.tar.xz
mana-1458c6b808afaf3af2f1f50f1988427edf64826c.zip
Sanitized item links so that at no point is the internal representation
of the item link shown. This should help make it easier for people to represent the square brackets with item links, and prevent people from forging item links when they never see the internal representation of an item link. Should also reduce confusion from people who haven't upgraded their clients as well, as they wonder what all the junk is around the item name. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index f4d9763b..b53552a6 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -735,10 +735,10 @@ void ChatWindow::setInputText(std::string input_str)
requestChatFocus();
}
-void ChatWindow::addItemText(int itemId, const std::string &item)
+void ChatWindow::addItemText(const std::string &item)
{
std::ostringstream text;
- text << "[@@" << itemId << "|" << item << "@@] ";
+ text << "[" << item << "] ";
mChatInput->setText(mChatInput->getText() + text.str());
requestChatFocus();
}