Cleaned up cmmandlist.
This commit is contained in:
1 parent
8479dfe6a2
commit
8d6f414086
1 file changed
+2
-4
+2
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user