From 87b9d3c6719fed6ca661e2ce8bbc6d778d7d84f7 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sun, 25 Nov 2012 15:57:08 +0100 Subject: [PATCH] Make umlaute and other special characters work with ":" emote shortcut also in IM panels --- indra/newview/llimfloater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index da03f3f379..3268ba9f1a 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -291,7 +291,7 @@ void LLIMFloater::sendMsg() { utf8_text.replace(0, 1, "/me"); } - else if (isalpha(utf8_text.at(1))) // Do not prevent smileys and such. + else if (!isdigit(utf8_text.at(1)) && !ispunct(utf8_text.at(1)) && !isspace(utf8_text.at(1))) // Do not prevent smileys and such. { utf8_text.replace(0, 1, "/me "); }