mirror of
https://github.com/anope/anope.git
synced 2026-06-26 01:06:39 +02:00
Modernize some bits of Command.
This commit is contained in:
@@ -141,7 +141,6 @@ void CommandSource::Reply(const Anope::string &message)
|
||||
|
||||
Command::Command(Module *o, const Anope::string &sname, size_t minparams, size_t maxparams) : Service(o, "Command", sname), max_params(maxparams), min_params(minparams), module(o)
|
||||
{
|
||||
allow_unregistered = require_user = false;
|
||||
}
|
||||
|
||||
void Command::SetDesc(const Anope::string &d)
|
||||
@@ -185,21 +184,11 @@ void Command::SendSyntax(CommandSource &source)
|
||||
source.Reply("%s: \002%s\002", prefix.c_str(), source.command.nobreak().c_str());
|
||||
}
|
||||
|
||||
bool Command::AllowUnregistered() const
|
||||
{
|
||||
return this->allow_unregistered;
|
||||
}
|
||||
|
||||
void Command::AllowUnregistered(bool b)
|
||||
{
|
||||
this->allow_unregistered = b;
|
||||
}
|
||||
|
||||
bool Command::RequireUser() const
|
||||
{
|
||||
return this->require_user;
|
||||
}
|
||||
|
||||
void Command::RequireUser(bool b)
|
||||
{
|
||||
this->require_user = b;
|
||||
|
||||
Reference in New Issue
Block a user