Better parsing for comments and empty lines in AO notecards

master
ziree 2012-01-12 14:06:07 +01:00
parent 10f95d646b
commit 67c8724090
1 changed files with 6 additions and 2 deletions

View File

@ -1484,10 +1484,14 @@ void AOEngine::parseNotecard(const char* buffer)
if(index==lines.size()-1)
line=line.substr(0,line.size()-1);
if( line.size() > 0 && line[0] == '#' ) // <ND/> FIRE-3801; skip comments to reduce spam to local chat.
LLStringUtil::trim(line);
if(line.empty())
continue;
if(line[0]=='#') // <ND/> FIRE-3801; skip comments to reduce spam to local chat.
continue;
LLStringUtil::trim(line);
if(line.find("[")!=0)
{
LLSD args;