From 1cd00ac68dca25c942c8db0cbaa8110d4a6a2f7a Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 15 Jan 2009 11:13:33 +0000 Subject: Fix bug with item links. --- src/gui/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2