Inherits Command.

Public Member Functions | |
| CommandOSException (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 | DoAdd (CommandSource &source, const std::vector< Anope::string > ¶ms) |
| void | DoDel (CommandSource &source, const std::vector< Anope::string > ¶ms) |
| void | DoMove (CommandSource &source, const std::vector< Anope::string > ¶ms) |
| void | ProcessList (CommandSource &source, const std::vector< Anope::string > ¶ms, ListFormatter &list) |
| void | DoList (CommandSource &source, const std::vector< Anope::string > ¶ms) |
| void | DoView (CommandSource &source, const std::vector< Anope::string > ¶ms) |
Definition at line 266 of file os_session.cpp.
| CommandOSException::CommandOSException | ( | Module * | creator | ) | [inline] |
Definition at line 530 of file os_session.cpp.
References _, Command::SetDesc(), and Command::SetSyntax().
| void CommandOSException::DoAdd | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, private] |
Definition at line 269 of file os_session.cpp.
References _, BAD_EXPIRY_TIME, Anope::string::c_str(), Config, Anope::CurTime, Anope::DoTime(), Anope::string::empty(), Anope::string::equals_ci(), EVENT_STOP, ServerConfig::ExceptionExpiry, Exception::expires, Anope::string::find(), FOREACH_RESULT, CommandSource::GetNick(), I_OnExceptionAdd, Exception::limit, Exception::mask, ServerConfig::MaxSessionLimit, Anope::string::npos, Command::OnSyntaxError(), READ_ONLY_MODE, Anope::ReadOnly, Exception::reason, CommandSource::Reply(), session_service(), Exception::time, and Exception::who.
Referenced by Execute().
| void CommandOSException::DoDel | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, private] |
Definition at line 368 of file os_session.cpp.
References _, Anope::string::c_str(), Anope::string::empty(), Anope::string::equals_ci(), Anope::string::find_first_not_of(), Anope::string::npos, Command::OnSyntaxError(), NumberList::Process(), READ_ONLY_MODE, Anope::ReadOnly, CommandSource::Reply(), and session_service().
Referenced by Execute().
| void CommandOSException::DoList | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, private] |
Definition at line 513 of file os_session.cpp.
References ListFormatter::AddColumn(), and ProcessList().
Referenced by Execute().
| void CommandOSException::DoMove | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, private] |
Definition at line 403 of file os_session.cpp.
References _, Anope::string::empty(), Command::OnSyntaxError(), READ_ONLY_MODE, Anope::ReadOnly, CommandSource::Reply(), and session_service().
Referenced by Execute().
| void CommandOSException::DoView | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params | |||
| ) | [inline, private] |
Definition at line 521 of file os_session.cpp.
References ListFormatter::AddColumn(), and ProcessList().
Referenced by Execute().
| void CommandOSException::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 540 of file os_session.cpp.
References _, Config, DoAdd(), DoDel(), DoList(), DoMove(), DoView(), Anope::string::equals_ci(), ServerConfig::LimitSessions, and Command::OnSyntaxError().
| bool CommandOSException::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 566 of file os_session.cpp.
References _, Anope::string::c_str(), Config, ServerConfig::OperServ, and Command::SendSyntax().
| void CommandOSException::ProcessList | ( | CommandSource & | source, | |
| const std::vector< Anope::string > & | params, | |||
| ListFormatter & | list | |||
| ) | [inline, private] |
Definition at line 440 of file os_session.cpp.
References _, ListFormatter::AddEntry(), anope_override, Anope::string::empty(), Anope::string::find_first_not_of(), ListFormatter::IsEmpty(), Exception::limit, Exception::mask, Anope::Match(), Anope::string::npos, ListFormatter::Process(), Exception::reason, CommandSource::Reply(), session_service(), Anope::strftime(), stringify(), Exception::time, and Exception::who.
1.7.1