This commit is contained in:
Lirusaito
2013-03-08 02:57:48 -05:00
1970 changed files with 661 additions and 4900 deletions

View File

@@ -426,8 +426,6 @@ void LLChatBar::sendChat( EChatType type )
{
if (gSavedSettings.getBOOL("AscentAutoCloseOOC") && (utf8text.length() > 1))
{
// Chalice - OOC autoclosing patch based on code by Henri Beauchamp
int needsClosingType=0;
//Check if it needs the end-of-chat brackets -HgB
if (utf8text.find("((") == 0 && utf8text.find("))") == -1)
{
@@ -441,8 +439,7 @@ void LLChatBar::sendChat( EChatType type )
utf8text+=" ";
utf8text+="]]";
}
//Check if it needs the start-of-chat brackets -HgB
needsClosingType=0;
if (utf8text.find("((") == -1 && utf8text.find("))") == (utf8text.length() - 2))
{
if(utf8text.at(0) == '(')