Alot of changes.

This commit is contained in:
Brad Arant committed 2019-05-21 16:41:07 -07:00
1 parent f894f3fb66
commit 9c0ea8e559
43 files changed
+697 -79

No files matched your search

+7 -7
View File
@@ -16,20 +16,20 @@ namespace core {
}
bool CommandList::processRequest(std::string request, Session *session) {
bool CommandList::processRequest(std::string request, Session *session, std::stringstream &data) {
for(auto *command : commands) {
if(command->check(request)) {
command->processCommand(request, session);
return true;
}
if(command->check(request)) {
command->processCommand(request, session, data);
return true;
}
}
return false;
}
int CommandList::processCommand(std::string request, Session *session) {
int CommandList::processCommand(std::string request, Session *session, std::stringstream &data) {
for(Command *command : commands)
session->out << command->getName() << std::endl;
data << command->getName() << std::endl;
}
}