mirror of
https://github.com/anope/anope.git
synced 2026-06-26 02:46:38 +02:00
Added a command:permission setting
This commit is contained in:
+1
-6
@@ -56,7 +56,7 @@ void CommandSource::DoReply()
|
||||
}
|
||||
}
|
||||
|
||||
Command::Command(Module *o, const Anope::string &sname, size_t min_params, size_t max_params, const Anope::string &spermission) : Service(o, sname), Flags<CommandFlag>(CommandFlagStrings), MaxParams(max_params), MinParams(min_params), permission(spermission), module(owner)
|
||||
Command::Command(Module *o, const Anope::string &sname, size_t min_params, size_t max_params) : Service(o, sname), Flags<CommandFlag>(CommandFlagStrings), MaxParams(max_params), MinParams(min_params), module(owner)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -113,8 +113,3 @@ void Command::OnSyntaxError(CommandSource &source, const Anope::string &subcomma
|
||||
source.Reply(MORE_INFO, Config->UseStrictPrivMsgString.c_str(), source.owner->nick.c_str(), source.command.c_str());
|
||||
}
|
||||
|
||||
void Command::SetPermission(const Anope::string &reststr)
|
||||
{
|
||||
this->permission = reststr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user