Continued restructing.
This commit is contained in:
1 parent
5e5e626d28
commit
a46db126e9
294 files changed
+2455
-2189
No files matched your search
+7
-7
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user