From 36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 20 Jan 2009 17:24:08 -0700 Subject: Made link searching case insensitive. Signed-off-by: Ira Rice --- src/gui/chat.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui') 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, "|"); -- cgit v1.2.3-70-g09d2