Parser: Fix segfault in command extraction
Dieser Commit ist enthalten in:
Ursprung
e863b5261b
Commit
538d9e8b2d
@ -71,7 +71,10 @@ std::string Parser::extractCommand(std::string cmdname, std::string content) con
|
|||||||
if(std::regex_match(content, match, reg))
|
if(std::regex_match(content, match, reg))
|
||||||
{
|
{
|
||||||
|
|
||||||
return match.str(2);
|
if(match.size() > 1)
|
||||||
|
{
|
||||||
|
return match.str(2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren