Make sure that only negative numbers are treated as chat channels.

meow-7.2.2
Tonya Souther 2011-02-10 07:39:26 -06:00
parent 24a08cf455
commit d13050afdd
1 changed files with 2 additions and 1 deletions

View File

@ -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;