Anope IRC Services
Version 2.0
|
Public Member Functions | |
CommandCSLevels (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 | |
void | DoSet (CommandSource &source, ChannelInfo *ci, const std::vector< Anope::string > ¶ms) |
void | DoDisable (CommandSource &source, ChannelInfo *ci, const std::vector< Anope::string > ¶ms) |
void | DoList (CommandSource &source, ChannelInfo *ci) |
void | DoReset (CommandSource &source, ChannelInfo *ci) |
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 611 of file cs_access.cpp.
|
inline |
Definition at line 732 of file cs_access.cpp.
References _, Command::SetDesc(), and Command::SetSyntax().
|
inlineprivate |
Definition at line 658 of file cs_access.cpp.
References _, ACCESS_INVALID, CommandSource::AccessFor(), Anope::string::c_str(), Anope::string::equals_ci(), PrivilegeManager::FindPrivilege(), FOREACH_MOD, AccessGroup::HasPriv(), LOG_COMMAND, LOG_OVERRIDE, Privilege::name, ChannelInfo::name, User::nick, CommandSource::Reply(), CommandSource::service, and ChannelInfo::SetLevel().
Referenced by Execute().
|
inlineprivate |
Definition at line 685 of file cs_access.cpp.
References _, ACCESS_FOUNDER, ACCESS_INVALID, ListFormatter::AddColumn(), Anope::string::c_str(), CommandSource::GetAccount(), ChannelInfo::GetLevel(), PrivilegeManager::GetPrivileges(), Privilege::name, ChannelInfo::name, CommandSource::Reply(), stringify(), and Language::Translate().
Referenced by Execute().
|
inlineprivate |
Definition at line 719 of file cs_access.cpp.
References _, CommandSource::AccessFor(), Anope::string::c_str(), FOREACH_MOD, AccessGroup::HasPriv(), LOG_COMMAND, LOG_OVERRIDE, ChannelInfo::name, CommandSource::Reply(), and reset_levels().
Referenced by Execute().
|
inlineprivate |
Definition at line 613 of file cs_access.cpp.
References _, ACCESS_FOUNDER, ACCESS_INVALID, CommandSource::AccessFor(), Anope::string::c_str(), Anope::string::equals_ci(), PrivilegeManager::FindPrivilege(), FOREACH_MOD, AccessGroup::HasPriv(), LOG_COMMAND, LOG_OVERRIDE, Privilege::name, ChannelInfo::name, User::nick, Command::OnSyntaxError(), CommandSource::Reply(), CommandSource::service, and ChannelInfo::SetLevel().
Referenced by Execute().
|
inlinevirtual |
Execute this command.
source | The source |
params | Command parameters |
Implements Command.
Definition at line 741 of file cs_access.cpp.
References ACCESS_DENIED, CHAN_X_NOT_REGISTERED, DoDisable(), DoList(), DoReset(), DoSet(), Anope::string::empty(), Anope::string::equals_ci(), ChannelInfo::Find(), Command::OnSyntaxError(), READ_ONLY_MODE, Anope::ReadOnly, and Anope::string::substr().
|
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 777 of file cs_access.cpp.
References _, ListFormatter::AddColumn(), Anope::string::c_str(), Privilege::desc, PrivilegeManager::GetPrivileges(), Privilege::name, Command::SendSyntax(), and Language::Translate().