Lowercase function names
This commit is contained in:
parent
6a5f9a5be3
commit
b28b776c69
@ -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
Loading…
Reference in New Issue
Block a user