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 CommandList::processRequest(std::string request, Session *session) {       | ||||||
|       bool found = false;       |  | ||||||
|       for(auto *command : commands) { |       for(auto *command : commands) { | ||||||
| 	 if(command->check(request)) { | 	 if(command->check(request)) { | ||||||
| 	    command->processCommand(request, session); | 	    command->processCommand(request, session); | ||||||
| 	    found = true; | 	    return true; | ||||||
| 	    break; |  | ||||||
| 	 } | 	 } | ||||||
|       }   |       }   | ||||||
|       return found; |       return false; | ||||||
|    } |    } | ||||||
|     |     | ||||||
|    int CommandList::processCommand(std::string request, Session *session) { |    int CommandList::processCommand(std::string request, Session *session) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Brad Arant
						Brad Arant