Inherits Command.

Public Member Functions | |
| CommandOSMode (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 16 of file os_mode.cpp.
| CommandOSMode::CommandOSMode | ( | Module * | creator | ) | [inline] |
Definition at line 19 of file os_mode.cpp.
References _, Command::SetDesc(), and Command::SetSyntax().
| void CommandOSMode::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 26 of file os_mode.cpp.
References _, Channel::bouncy_modes, Anope::string::c_str(), CHAN_X_NOT_IN_USE, Channel::ci, Anope::string::empty(), Anope::string::equals_ci(), User::Find(), Channel::Find(), ModeManager::FindChannelModeByChar(), Channel::FindUser(), Channel::GetModes(), sepstream::GetToken(), User::GetUID(), User::HasMode(), Anope::string::length(), LOG_ADMIN, Mode::mchar, MODE_REGULAR, MODE_STATUS, ChannelStatus::modes, Channel::name, Channel::RemoveMode(), Anope::string::replace_all_cs(), Channel::SetMode(), ChanUserContainer::status, Mode::type, ChanUserContainer::user, and Channel::users.
| bool CommandOSMode::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 123 of file os_mode.cpp.
References _, and Command::SendSyntax().
1.7.1