diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-08 20:06:21 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-08 20:06:21 +0000 |
commit | 458be36a321615c0f3004a6abde7e14d40f5da32 (patch) | |
tree | 711be83fc6f2d49f9d31015db51730cdac57f687 /src/command.cpp | |
parent | 38ad96c57c520dd84c8de21766f5de082a844a99 (diff) |
Rewrote all of the old C style flag systems into a new Flag class which everything inherits from. This breaks reading and writing flags to the old databases (and probably many other things aswell) - Don't use it
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2636 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/command.cpp b/src/command.cpp index fa5b21a2a..41e9045e5 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -13,7 +13,6 @@ Command::Command(const std::string &sname, size_t min_params, size_t max_params, const std::string &spermission) : MaxParams(max_params), MinParams(min_params), name(sname), permission(spermission) { - this->flags = 0; this->core = 0; this->mod_name = NULL; this->service = NULL; @@ -36,21 +35,6 @@ bool Command::OnHelp(User *u, const ci::string &subcommand) { return false; } void Command::OnSyntaxError(User *u) { } -void Command::SetFlag(CommandFlags flag) -{ - this->flags |= flag; -} - -void Command::UnsetFlag(CommandFlags flag) -{ - this->flags &= ~flag; -} - -bool Command::HasFlag(CommandFlags flag) const -{ - return this->flags & flag; -} - void Command::SetPermission(const std::string &reststr) { this->permission = reststr; |