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

Public Member Functions

 CommandNSSetMisc (Module *creator, const Anope::string &cname="nickserv/set/misc", size_t min=0)
void Run (CommandSource &source, const Anope::string &user, const Anope::string &param)
void Execute (CommandSource &source, const std::vector< Anope::string > &params) anope_override
void OnServHelp (CommandSource &source) 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 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)

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 91 of file ns_set_misc.cpp.

Constructor & Destructor Documentation

◆ CommandNSSetMisc()

CommandNSSetMisc::CommandNSSetMisc ( Module creator,
const Anope::string cname = "nickserv/set/misc",
size_t  min = 0 

Definition at line 94 of file ns_set_misc.cpp.

References _.

Member Function Documentation

◆ Execute()

void CommandNSSetMisc::Execute ( CommandSource source,
const std::vector< Anope::string > &  params 

Execute this command.

sourceThe source
paramsCommand parameters

Implements Command.

Reimplemented in CommandNSSASetMisc.

Definition at line 138 of file ns_set_misc.cpp.

◆ OnHelp()

bool CommandNSSetMisc::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 152 of file ns_set_misc.cpp.

References Language::Translate().

◆ OnServHelp()

void CommandNSSetMisc::OnServHelp ( CommandSource source)

Called when HELP is requsted for the client this command is on.

sourceThe source

Reimplemented from Command.

Definition at line 143 of file ns_set_misc.cpp.

References Command::OnServHelp().

◆ Run()

void CommandNSSetMisc::Run ( CommandSource source,
const Anope::string user,
const Anope::string param 

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