From d13050afddd364391317af063a535eb272e8a8db Mon Sep 17 00:00:00 2001 From: Tonya Souther Date: Thu, 10 Feb 2011 07:39:26 -0600 Subject: [PATCH] Make sure that only negative numbers are treated as chat channels. --- indra/newview/llnearbychatbar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llnearbychatbar.cpp b/indra/newview/llnearbychatbar.cpp index c73e79c6a8..8bf187eba4 100644 --- a/indra/newview/llnearbychatbar.cpp +++ b/indra/newview/llnearbychatbar.cpp @@ -892,7 +892,8 @@ LLWString LLNearbyChatBar::stripChannelNumber(const LLWString &mesg, S32* channe else if (mesg[0] == '/' && mesg[1] && ( LLStringOps::isDigit(mesg[1]) - || mesg[1] == '-')) + || (mesg[1] == '-' + && LLStringOps::isDigit(mesg[2])))) { // This a special "/20" speak on a channel S32 pos = 0;