*Reverted 699
--HG-- branch : trunk
This commit is contained in:
+5
-4
@@ -842,8 +842,10 @@ int ChatHandler::ParseCommands(const char* text)
|
|||||||
ASSERT(text);
|
ASSERT(text);
|
||||||
ASSERT(*text);
|
ASSERT(*text);
|
||||||
|
|
||||||
if(m_session->GetSecurity() == 0)
|
std::string fullcmd = text;
|
||||||
return 0;
|
|
||||||
|
//if(m_session->GetSecurity() == 0)
|
||||||
|
// return 0;
|
||||||
|
|
||||||
/// chat case (.command or !command format)
|
/// chat case (.command or !command format)
|
||||||
if(m_session)
|
if(m_session)
|
||||||
@@ -855,8 +857,7 @@ int ChatHandler::ParseCommands(const char* text)
|
|||||||
/// ignore single . and ! in line
|
/// ignore single . and ! in line
|
||||||
if(strlen(text) < 2)
|
if(strlen(text) < 2)
|
||||||
return 0;
|
return 0;
|
||||||
|
// original `text` can't be used. It content destroyed in command code processing.
|
||||||
std::string fullcmd = text; // original `text` can't be used. It content destroyed in command code processing.
|
|
||||||
|
|
||||||
/// ignore messages staring from many dots.
|
/// ignore messages staring from many dots.
|
||||||
if(text[0] == '.' && text[1] == '.' || text[0] == '!' && text[1] == '!')
|
if(text[0] == '.' && text[1] == '.' || text[0] == '!' && text[1] == '!')
|
||||||
|
|||||||
Reference in New Issue
Block a user