summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-01-15 11:13:33 +0000
committerDavid Athay <ko2fan@gmail.com>2009-01-15 11:13:33 +0000
commit833b4ee6b06a0d23781153ad117d638fa9cc9ace (patch)
tree152e10312c1d6c8591d5a613b1fe18f296d25c28 /src/gui/chat.cpp
parent451b5887beae88c1f3c139a35d23e5521e896e7d (diff)
downloadmana-833b4ee6b06a0d23781153ad117d638fa9cc9ace.tar.gz
mana-833b4ee6b06a0d23781153ad117d638fa9cc9ace.tar.bz2
mana-833b4ee6b06a0d23781153ad117d638fa9cc9ace.tar.xz
mana-833b4ee6b06a0d23781153ad117d638fa9cc9ace.zip
Fix bug with item links.
Diffstat (limited to 'src/gui/chat.cpp')
-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 f391ccb9..1cf64c74 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -311,7 +311,7 @@ void ChatWindow::chatSend(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)