Anope IRC Services  Version 2.0
Public Member Functions | Private Member Functions
CommandOSIgnore Class Reference
Inheritance diagram for CommandOSIgnore:
Inheritance graph
Collaboration diagram for CommandOSIgnore:
Collaboration graph

Public Member Functions

 CommandOSIgnore (Module *creator)
void Execute (CommandSource &source, const std::vector< Anope::string > &params) anope_override
bool OnHelp (CommandSource &source, const Anope::string &subcommand) anope_override
- Public Member Functions inherited from Command
virtual ~Command ()
bool AllowUnregistered () const
bool RequireUser () const
virtual const Anope::string GetDesc (CommandSource &source) const
virtual void OnServHelp (CommandSource &source)
virtual void OnSyntaxError (CommandSource &source, const Anope::string &subcommand)
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
virtual ~Service ()
void Register ()
void Unregister ()
- Public Member Functions inherited from Base
 Base ()
virtual ~Base ()
void AddReference (ReferenceBase *r)
void DelReference (ReferenceBase *r)

Private Member Functions

Anope::string RealMask (const Anope::string &mask)
void DoAdd (CommandSource &source, const std::vector< Anope::string > &params)
void DoList (CommandSource &source)
void DoDel (CommandSource &source, const std::vector< Anope::string > &params)
void DoClear (CommandSource &source)

Additional Inherited Members

- Static Public Member Functions inherited from Command
static void Run (CommandSource &source, const Anope::string &message)
static bool FindCommandFromService (const Anope::string &command_service, BotInfo *&bi, Anope::string &name)
- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
static std::vector< Anope::stringGetServiceKeys (const Anope::string &t)
static void AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v)
static void DelAlias (const Anope::string &t, const Anope::string &n)
- Data Fields inherited from Command
size_t max_params
size_t min_params
- Data Fields inherited from Service
Anope::string type
Anope::string name
- Protected Member Functions inherited from Command
 Command (Module *owner, const Anope::string &sname, size_t min_params, size_t max_params=0)
void SetDesc (const Anope::string &d)
void ClearSyntax ()
void SetSyntax (const Anope::string &s)
void SendSyntax (CommandSource &)
void AllowUnregistered (bool b)
void RequireUser (bool b)

Detailed Description

Definition at line 157 of file os_ignore.cpp.

Constructor & Destructor Documentation

CommandOSIgnore::CommandOSIgnore ( Module creator)

Definition at line 339 of file os_ignore.cpp.

References _, Command::SetDesc(), and Command::SetSyntax().

Member Function Documentation

void CommandOSIgnore::DoAdd ( CommandSource source,
const std::vector< Anope::string > &  params 
void CommandOSIgnore::DoClear ( CommandSource source)

Definition at line 323 of file os_ignore.cpp.

References _, ignore_service(), LOG_ADMIN, READ_ONLY_MODE, Anope::ReadOnly, and CommandSource::Reply().

Referenced by Execute().

void CommandOSIgnore::DoDel ( CommandSource source,
const std::vector< Anope::string > &  params 
void CommandOSIgnore::DoList ( CommandSource source)
void CommandOSIgnore::Execute ( CommandSource source,
const std::vector< Anope::string > &  params 

Execute this command.

sourceThe source
paramsCommand parameters

Implements Command.

Definition at line 348 of file os_ignore.cpp.

References DoAdd(), DoClear(), DoDel(), DoList(), Anope::string::equals_ci(), and Command::OnSyntaxError().

bool CommandOSIgnore::OnHelp ( CommandSource source,
const Anope::string subcommand 

Requested when the user is requesting help on this command. Help on this command should be sent to the user.

sourceThe source
subcommandThe 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")
true if help was provided to the user, false otherwise.

Reimplemented from Command.

Definition at line 366 of file os_ignore.cpp.

References _, Anope::string::c_str(), Anope::string::empty(), and Command::SendSyntax().

Anope::string CommandOSIgnore::RealMask ( const Anope::string mask)

Definition at line 160 of file os_ignore.cpp.

References Anope::string::find(), User::Find(), User::host, and Anope::string::npos.

Referenced by DoAdd(), and DoDel().

The documentation for this class was generated from the following file: