Cleaned up cmmandlist.

This commit is contained in:
Brad Arant 2019-02-16 22:58:53 -08:00
parent 8479dfe6a2
commit 8d6f414086

View File

@ -16,15 +16,13 @@ namespace core {
}
bool CommandList::processRequest(std::string request, Session *session) {
bool found = false;
for(auto *command : commands) {
if(command->check(request)) {
command->processCommand(request, session);
found = true;
break;
return true;
}
}
return found;
return false;
}
int CommandList::processCommand(std::string request, Session *session) {