mirror of
https://github.com/anope/anope.git
synced 2026-06-25 21:06:38 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user