summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-01-15 11:13:33 +0000
committerIra Rice <irarice@gmail.com>2009-01-20 11:04:46 -0700
commit1cd00ac68dca25c942c8db0cbaa8110d4a6a2f7a (patch)
treec65a0497c24b2de0d8e9b184bff86deefce826cc /src
parentde068425200d5254181c6806ebeb4a72d68895ec (diff)
downloadmana-1cd00ac68dca25c942c8db0cbaa8110d4a6a2f7a.tar.gz
mana-1cd00ac68dca25c942c8db0cbaa8110d4a6a2f7a.tar.bz2
mana-1cd00ac68dca25c942c8db0cbaa8110d4a6a2f7a.tar.xz
mana-1cd00ac68dca25c942c8db0cbaa8110d4a6a2f7a.zip
Fix bug with item links.
Diffstat (limited to 'src')
-rw-r--r--src/gui/chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 84666df4..b4b533db 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -358,7 +358,7 @@ void ChatWindow::chatSend(const std::string &nick, std::string msg)
// check for item link
std::string::size_type start = msg.find('[');
- if (start != std::string::npos)
+ if (start != std::string::npos && msg[start+1] != '@')
{
std::string::size_type end = msg.find(']', start);
if (end != std::string::npos)