Continued restructing.

This commit is contained in:
barant committed 2019-09-13 09:16:55 -07:00
1 parent 5e5e626d28
commit a46db126e9
294 files changed
+2455 -2189

No files matched your search

+7 -7
View File
@@ -7,14 +7,14 @@ namespace core {
void Command::output(Session *session) {}
bool Command::check(std::string request) {
bool Command::check(std::string request) {
if(request != "") {
if(name.length() > 0) {
size_t start = request.find_first_not_of(" ");
if(name == request.substr(start, name.length()))
return true;
}
return false;
if(name.length() > 0) {
size_t start = request.find_first_not_of(" ");
if(name == request.substr(start, name.length()))
return true;
}
return false;
}
}