Continued restructing.
This commit is contained in:
1 parent
5e5e626d28
commit
a46db126e9
294 files changed
+2455
-2189
No files matched your search
+1
-3
@@ -1,4 +1,4 @@
|
||||
#include "CommandList.h"
|
||||
#include "CommandList.h"\
|
||||
|
||||
namespace core {
|
||||
|
||||
@@ -9,7 +9,6 @@ namespace core {
|
||||
void CommandList::add(Command &command, std::string name) {
|
||||
command.setName(name);
|
||||
commands.push_back(&command);
|
||||
|
||||
}
|
||||
|
||||
void CommandList::remove(Command &command) {
|
||||
@@ -17,7 +16,6 @@ namespace core {
|
||||
}
|
||||
|
||||
bool CommandList::processRequest(std::string request, Session *session, std::stringstream &data) {
|
||||
|
||||
for(auto *command : commands) {
|
||||
if(command->check(request)) {
|
||||
command->processCommand(request, session, data);
|
||||
|
||||
Reference in new issue
Block a user