Lowercase function names

This commit is contained in:
Federico Cecchetto 2022-03-10 23:21:31 +01:00
parent 7a6858151b
commit a0bce7bb18
2 changed files with 594 additions and 601 deletions

View File

@ -27,15 +27,8 @@ namespace network
const auto cmd_string = utils::string::to_lower(command); const auto cmd_string = utils::string::to_lower(command);
auto& callbacks = get_callbacks(); auto& callbacks = get_callbacks();
const auto handler = callbacks.find(cmd_string); const auto handler = callbacks.find(cmd_string);
if (handler == callbacks.end())
{
return false;
}
const auto offset = cmd_string.size() + 5; const auto offset = cmd_string.size() + 5;
if (message->cursize < offset || handler == callbacks.end())
if (message->cursize <= offset)
{ {
return false; return false;
} }

File diff suppressed because it is too large Load Diff