Inherits Command.

Public Member Functions | |
| CommandCSInfo (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 (Anope::string &buf, const Anope::string &opt, const char *str, const ChannelInfo *ci, const NickCore *nc) |
Definition at line 16 of file cs_info.cpp.
| CommandCSInfo::CommandCSInfo | ( | Module * | creator | ) | [inline] |
Definition at line 30 of file cs_info.cpp.
References _, Command::AllowUnregistered(), Command::SetDesc(), and Command::SetSyntax().
| void CommandCSInfo::CheckOptStr | ( | Anope::string & | buf, | |
| const Anope::string & | opt, | |||
| const char * | str, | |||
| const ChannelInfo * | ci, | |||
| const NickCore * | nc | |||
| ) | [inline, private] |
Definition at line 18 of file cs_info.cpp.
References Anope::string::empty(), Extensible::HasExt(), and Language::Translate().
Referenced by Execute().
| void CommandCSInfo::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 cs_info.cpp.
References _, ChannelInfo::bantype, ChannelInfo::c, Anope::string::c_str(), CHAN_INFO_HEADER, CHAN_X_NOT_REGISTERED, CheckOptStr(), Config, ServerConfig::CSExpire, ChannelInfo::desc, NickCore::display, Anope::string::empty(), ChannelInfo::Find(), FOREACH_MOD, Extensible::GetExt(), ChannelInfo::GetFounder(), ChannelInfo::GetMLock(), ChannelInfo::GetMLockAsString(), ChannelInfo::GetSuccessor(), Extensible::HasExt(), Channel::HasMode(), I_OnChanInfo, ChannelInfo::last_topic, ChannelInfo::last_topic_setter, ChannelInfo::last_used, Anope::printf(), InfoFormatter::Process(), ModeLock::set, Anope::strftime(), stringify(), and ChannelInfo::time_registered.
| bool CommandCSInfo::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 126 of file cs_info.cpp.
References _, and Command::SendSyntax().
1.7.1