Cleaned up cmmandlist.
This commit is contained in:
		
							parent
							
								
									8479dfe6a2
								
							
						
					
					
						commit
						8d6f414086
					
				| @ -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) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Brad Arant
						Brad Arant