Inherits NewsBase.

Public Member Functions | |
| CommandOSRandomNews (Module *creator) | |
| void | Execute (CommandSource &source, const std::vector< Anope::string > ¶ms) anope_override |
| bool | OnHelp (CommandSource &source, const Anope::string &subcommand) anope_override |
Definition at line 311 of file os_news.cpp.
| CommandOSRandomNews::CommandOSRandomNews | ( | Module * | creator | ) | [inline] |
Definition at line 314 of file os_news.cpp.
References _, and Command::SetDesc().
| void CommandOSRandomNews::Execute | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, virtual] |
Execute this command.
| source | The source | |
| params | Command parameters |
Implements NewsBase.
Definition at line 319 of file os_news.cpp.
References NewsBase::DoNews(), and NEWS_RANDOM.
| bool CommandOSRandomNews::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") |
Implements NewsBase.
Definition at line 324 of file os_news.cpp.
References _, and Command::SendSyntax().
1.7.1