Inherits Command.

Public Member Functions | |
| CommandNSInfo (Module *creator) | |
| void | Execute (CommandSource &source, const std::vector< Anope::string > ¶ms) anope_override |
| bool | OnHelp (CommandSource &source, const Anope::string &subcommand) anope_override |
Private Member Functions | |
| void | CheckOptStr (NickCore *core, Anope::string &buf, const Anope::string &opt, const char *str, const Extensible *e, bool reverse_logic=false) |
Definition at line 16 of file ns_info.cpp.
| CommandNSInfo::CommandNSInfo | ( | Module * | creator | ) | [inline] |
Definition at line 30 of file ns_info.cpp.
References _, Command::AllowUnregistered(), Command::SetDesc(), and Command::SetSyntax().
| void CommandNSInfo::CheckOptStr | ( | NickCore * | core, | |
| Anope::string & | buf, | |||
| const Anope::string & | opt, | |||
| const char * | str, | |||
| const Extensible * | e, | |||
| bool | reverse_logic = false | |||
| ) | [inline, private] |
Definition at line 19 of file ns_info.cpp.
References Anope::string::empty(), Extensible::HasExt(), and Language::Translate().
Referenced by Execute().
| void CommandNSInfo::Execute | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, virtual] |
Execute this command.
| source | The source | |
| params | Command parameters |
Implements Command.
Definition at line 37 of file ns_info.cpp.
References _, User::Account(), Anope::string::c_str(), IRCDProto::CanSetVIdent, CheckOptStr(), Config, Anope::string::empty(), User::Find(), BotInfo::Find(), NickAlias::Find(), FOREACH_MOD, NickAlias::GetVhostHost(), NickAlias::GetVhostIdent(), Extensible::HasExt(), NickAlias::HasVhost(), I_OnNickInfo, IRCD, NickAlias::last_quit, NickAlias::last_realhost, NickAlias::last_realname, NickAlias::last_seen, NickAlias::last_usermask, NickAlias::nc, NickAlias::nick, NICK_X_NOT_REGISTERED, ServerConfig::NSExpire, ServerConfig::NSUnconfirmedExpire, InfoFormatter::Process(), Anope::strftime(), and NickAlias::time_registered.
| bool CommandNSInfo::OnHelp | ( | CommandSource & | source, | |
| const Anope::string & | subcommand | |||
| ) | [inline, virtual] |
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 148 of file ns_info.cpp.
References _, and Command::SendSyntax().
1.7.1