Initial repository 1.0.0
This commit is contained in:
commit
d8b1275884
1861 files changed
+66342
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
#include "Command.h"
|
||||
#include "Session.h"
|
||||
|
||||
namespace core {
|
||||
|
||||
void Command::output(Session *session) {}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
void Command::setName(std::string name) {
|
||||
this->name = name;
|
||||
}
|
||||
|
||||
std::string Command::getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user