The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download | Blog | Stats
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ModuleGlobops Class Reference

Inheritance diagram for ModuleGlobops:

Inheritance graph
[legend]
Collaboration diagram for ModuleGlobops:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleGlobops (InspIRCd *Me)
virtual ~ModuleGlobops ()
virtual Version GetVersion ()
 Returns the version number of a Module.
void Implements (char *List)
 The Implements function specifies which methods a module should receive events for.

Private Attributes

cmd_globopsmycommand

Detailed Description

Definition at line 48 of file m_globops.cpp.


Constructor & Destructor Documentation

ModuleGlobops::ModuleGlobops InspIRCd Me  )  [inline]
 

Definition at line 52 of file m_globops.cpp.

References InspIRCd::AddCommand(), SnomaskManager::EnableSnomask(), mycommand, Module::ServerInstance, and InspIRCd::SNO.

00053                 : Module(Me)
00054         {
00055                 mycommand = new cmd_globops(ServerInstance);
00056                 ServerInstance->AddCommand(mycommand);
00057                 ServerInstance->SNO->EnableSnomask('g',"GLOBOPS");
00058         }

virtual ModuleGlobops::~ModuleGlobops  )  [inline, virtual]
 

Definition at line 60 of file m_globops.cpp.

References SnomaskManager::DisableSnomask(), Module::ServerInstance, and InspIRCd::SNO.

00061         {
00062                 ServerInstance->SNO->DisableSnomask('g');
00063         }


Member Function Documentation

virtual Version ModuleGlobops::GetVersion  )  [inline, virtual]
 

Returns the version number of a Module.

The method should return a Version object with its version information assigned via Version::Version

Reimplemented from Module.

Definition at line 65 of file m_globops.cpp.

References API_VERSION, VF_COMMON, and VF_VENDOR.

00066         {
00067                 return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
00068         }

void ModuleGlobops::Implements char *  List  )  [inline, virtual]
 

The Implements function specifies which methods a module should receive events for.

The char* parameter passed to this function contains a set of true or false values (1 or 0) which indicate wether each function is implemented. You must use the Iimplementation enum (documented elsewhere on this page) to mark functions as active. For example, to receive events for OnUserJoin():

Implements[I_OnUserJoin] = 1;

Parameters:
The implement list

Reimplemented from Module.

Definition at line 70 of file m_globops.cpp.

00071         {
00072         }


Member Data Documentation

cmd_globops* ModuleGlobops::mycommand [private]
 

Definition at line 50 of file m_globops.cpp.

Referenced by ModuleGlobops().


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