Tiny change to allow /ME to work in instant messages.

Sometimes people want to type in all caps, sometimes caps lock goes on by accident, either way, in instant messages, it won't affect /ME anymore.
TODO: /ME for local chat.
This commit is contained in:
Lirusaito
2012-02-02 03:49:48 -05:00
parent 0340778775
commit 03c0509a6c

View File

@@ -2201,6 +2201,10 @@ void LLFloaterIMPanel::sendMsg()
}
}
if (utf8text.find("/ME'") == 0 || utf8text.find("/ME ") == 0) //Allow CAPSlock /me
{
utf8text.replace(1, 2, "me");
}
std::string prefix = utf8text.substr(0, 4);
if (prefix != "/me " && prefix != "/me'")
if (mRPMode) utf8text = "[[" + utf8text + "]]";