Inherits Command.

Public Member Functions | |
| CommandOSDefcon (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 | SendLevels (CommandSource &source) |
Definition at line 146 of file os_defcon.cpp.
| CommandOSDefcon::CommandOSDefcon | ( | Module * | creator | ) | [inline] |
Definition at line 173 of file os_defcon.cpp.
References _, Command::SetDesc(), and Command::SetSyntax().
| void CommandOSDefcon::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 179 of file os_defcon.cpp.
References _, DefconConfig::defaultlevel, Anope::string::empty(), FOREACH_MOD, Global, DefconConfig::globalondefcon, I_OnDefconLevel, LOG_ADMIN, DefconConfig::message, Command::module, DefconConfig::offmessage, Command::OnSyntaxError(), Anope::printf(), runDefCon(), SendLevels(), and DefconConfig::timeout.
| bool CommandOSDefcon::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 235 of file os_defcon.cpp.
References _, and Command::SendSyntax().
| void CommandOSDefcon::SendLevels | ( | CommandSource & | source | ) | [inline, private] |
Definition at line 148 of file os_defcon.cpp.
References _, Anope::string::c_str(), DefconConfig::chanmodes, DefconConfig::Check(), DEFCON_AKILL_NEW_CLIENTS, DEFCON_FORCE_CHAN_MODES, DEFCON_NO_MLOCK_CHANGE, DEFCON_NO_NEW_CHANNELS, DEFCON_NO_NEW_CLIENTS, DEFCON_NO_NEW_MEMOS, DEFCON_NO_NEW_NICKS, DEFCON_OPER_ONLY, DEFCON_REDUCE_SESSION, DEFCON_SILENT_OPER_ONLY, Anope::string::empty(), CommandSource::Reply(), and DefconConfig::sessionlimit.
Referenced by Execute().
1.7.1