diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-20 17:24:08 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-20 17:24:08 -0700 |
commit | 36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd (patch) | |
tree | 8bd2dffaf311a4c6ef43fc610c5e4795e24ce965 /src/gui/chat.cpp | |
parent | 567cd92eae386c28b6af90121d0f8f575dce0687 (diff) | |
download | mana-36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd.tar.gz mana-36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd.tar.bz2 mana-36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd.tar.xz mana-36bd28ec6bfcf1e15fdf4378ce7a5687cad604bd.zip |
Made link searching case insensitive.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 8 |
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, "|"); |