summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/chat.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index b4b533db..4c03f618 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -364,6 +364,14 @@ void ChatWindow::chatSend(const std::string &nick, std::string msg)
if (end != std::string::npos)
{
std::string temp = msg.substr(start+1, end-1);
+
+ for (unsigned int i = 0; i < temp.size(); i++)
+ {
+ temp[i] = (char) tolower(temp[i]);
+ }
+
+ std::cout << temp << std::endl;
+
ItemInfo itemInfo = ItemDB::get(temp);
msg.insert(end, "@@");
msg.insert(start+1, "|");