From 03c0509a6c871f274794f0ee407a3fc5c86bb02c Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Thu, 2 Feb 2012 03:49:48 -0500 Subject: [PATCH] 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. --- indra/newview/llimpanel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 1bed779ff..0c834da53 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -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 + "]]";