Anope IRC Services
Version 2.0
|
Public Member Functions | |
CommandMSSet (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 | DoNotify (CommandSource &source, const std::vector< Anope::string > ¶ms, MemoInfo *mi) |
void | DoLimit (CommandSource &source, const std::vector< Anope::string > ¶ms, MemoInfo *mi) |
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 14 of file ms_set.cpp.
|
inline |
Definition at line 204 of file ms_set.cpp.
References _, Command::SetDesc(), and Command::SetSyntax().
|
inlineprivate |
Definition at line 70 of file ms_set.cpp.
References _, ACCESS_DENIED, CommandSource::AccessFor(), Anope::string::c_str(), CHAN_X_NOT_REGISTERED, Anope::string::empty(), Anope::string::equals_ci(), Extensible::Extend(), NickAlias::Find(), ChannelInfo::Find(), Extensible::HasExt(), CommandSource::HasPriv(), AccessGroup::HasPriv(), Anope::string::is_pos_number_only(), MemoInfo::memomax, ChannelInfo::memos, NickAlias::nc, CommandSource::nc, NICK_X_NOT_REGISTERED, Command::OnSyntaxError(), CommandSource::Reply(), and Extensible::Shrink().
Referenced by Execute().
|
inlineprivate |
Definition at line 17 of file ms_set.cpp.
References _, Anope::string::c_str(), NickCore::email, Anope::string::empty(), Anope::string::equals_ci(), Extensible::Extend(), CommandSource::nc, User::nick, Command::OnSyntaxError(), CommandSource::Reply(), and Extensible::Shrink().
Referenced by Execute().
|
inlinevirtual |
Execute this command.
source | The source |
params | Command parameters |
Implements Command.
Definition at line 210 of file ms_set.cpp.
References _, DoLimit(), DoNotify(), Anope::string::equals_ci(), MemoInfo::memos, Command::OnSyntaxError(), and Anope::ReadOnly.
|
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 229 of file ms_set.cpp.
References _, and Command::SendSyntax().