Anope IRC Services
Version 2.0
|
Public Member Functions | |
CommandOSOper (Module *creator) | |
void | Execute (CommandSource &source, const std::vector< Anope::string > ¶ms) anope_override |
bool | OnHelp (CommandSource &source, const Anope::string &subcommand) anope_override |
![]() | |
virtual | ~Command () |
bool | AllowUnregistered () const |
bool | RequireUser () const |
virtual const Anope::string | GetDesc (CommandSource &source) const |
virtual void | OnServHelp (CommandSource &source) |
virtual void | OnSyntaxError (CommandSource &source, const Anope::string &subcommand) |
![]() | |
Service (Module *o, const Anope::string &t, const Anope::string &n) | |
virtual | ~Service () |
void | Register () |
void | Unregister () |
![]() | |
Base () | |
virtual | ~Base () |
void | AddReference (ReferenceBase *r) |
void | DelReference (ReferenceBase *r) |
Private Member Functions | |
bool | HasPrivs (CommandSource &source, OperType *ot) const |
Additional Inherited Members | |
![]() | |
static void | Run (CommandSource &source, const Anope::string &message) |
static bool | FindCommandFromService (const Anope::string &command_service, BotInfo *&bi, Anope::string &name) |
![]() | |
static Service * | FindService (const Anope::string &t, const Anope::string &n) |
static std::vector< Anope::string > | GetServiceKeys (const Anope::string &t) |
static void | AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v) |
static void | DelAlias (const Anope::string &t, const Anope::string &n) |
![]() | |
size_t | max_params |
size_t | min_params |
Module * | module |
![]() | |
Module * | owner |
Anope::string | type |
Anope::string | name |
![]() | |
Command (Module *owner, const Anope::string &sname, size_t min_params, size_t max_params=0) | |
void | SetDesc (const Anope::string &d) |
void | ClearSyntax () |
void | SetSyntax (const Anope::string &s) |
void | SendSyntax (CommandSource &) |
void | AllowUnregistered (bool b) |
void | RequireUser (bool b) |
Definition at line 49 of file os_oper.cpp.
|
inline |
Definition at line 67 of file os_oper.cpp.
References _, Command::SetDesc(), and Command::SetSyntax().
|
inlinevirtual |
Execute this command.
source | The source |
params | Command parameters |
Implements Command.
Definition at line 76 of file os_oper.cpp.
References _, ACCESS_DENIED, Anope::string::c_str(), Anope::string::clear(), Anope::string::empty(), Anope::string::equals_ci(), OperType::Find(), NickAlias::Find(), OperType::GetCommands(), OperType::GetName(), OperType::GetPrivs(), HasPrivs(), Anope::string::length(), LOG_ADMIN, OperType::modes, Oper::name, NickAlias::nc, NickAlias::nick, User::nick, NICK_X_NOT_REGISTERED, NickCoreList, NickCore::o, Command::OnSyntaxError(), Oper::ot, READ_ONLY_MODE, Anope::ReadOnly, and NickCore::users.
|
inlineprivate |
Definition at line 51 of file os_oper.cpp.
References OperType::GetCommands(), OperType::GetPrivs(), CommandSource::HasCommand(), and CommandSource::HasPriv().
Referenced by Execute().
|
inlinevirtual |
Requested when the user is requesting help on this command. Help on this command should be sent to the user.
source | The source |
subcommand | The subcommand the user is requesting help on, or an empty string. (e.g. /ns help set foo bar lol gives a subcommand of "FOO BAR LOL") |
Reimplemented from Command.
Definition at line 221 of file os_oper.cpp.
References _, and Command::SendSyntax().