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