Anope IRC Services
Version 2.0
|
Public Member Functions | |
CommandNSSetLanguage (Module *creator, const Anope::string &sname="nickserv/set/language", size_t min=1) | |
void | Run (CommandSource &source, const Anope::string &user, const Anope::string ¶m) |
void | Execute (CommandSource &source, const std::vector< Anope::string > ¶m) anope_override |
bool | OnHelp (CommandSource &source, const Anope::string &) 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) |
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 767 of file ns_set.cpp.
|
inline |
Definition at line 770 of file ns_set.cpp.
References _, Command::SetDesc(), and Command::SetSyntax().
|
inlinevirtual |
Execute this command.
source | The source |
params | Command parameters |
Implements Command.
Reimplemented in CommandNSSASetLanguage.
Definition at line 815 of file ns_set.cpp.
References Run().
|
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.
Reimplemented in CommandNSSASetLanguage.
Definition at line 820 of file ns_set.cpp.
References _, Anope::string::c_str(), Language::Languages, CommandSource::Reply(), Command::SendSyntax(), and Language::Translate().
|
inline |
Definition at line 776 of file ns_set.cpp.
References _, Anope::string::c_str(), NickCore::display, EVENT_STOP, NickAlias::Find(), FOREACH_RESULT, CommandSource::GetAccount(), NickCore::language, Language::Languages, LOG_ADMIN, LOG_COMMAND, NickAlias::nc, NICK_X_NOT_REGISTERED, Command::OnSyntaxError(), READ_ONLY_MODE, Anope::ReadOnly, and CommandSource::Reply().
Referenced by Execute(), and CommandNSSASetLanguage::Execute().