Anope IRC Services  Version 2.0
Public Member Functions
SNLineManager Class Reference
Inheritance diagram for SNLineManager:
Inheritance graph
[legend]
Collaboration diagram for SNLineManager:
Collaboration graph
[legend]

Public Member Functions

 SNLineManager (Module *creator)
 
void OnMatch (User *u, XLine *x) anope_override
 
void OnExpire (const XLine *x) anope_override
 
void Send (User *u, XLine *x) anope_override
 
void SendDel (XLine *x) anope_override
 
bool Check (User *u, const XLine *x) anope_override
 
- Public Member Functions inherited from XLineManager
 XLineManager (Module *creator, const Anope::string &name, char t)
 
virtual ~XLineManager ()
 
const char & Type ()
 
size_t GetCount () const
 
const std::vector< XLine * > & GetList () const
 
void AddXLine (XLine *x)
 
bool DelXLine (XLine *x)
 
XLineGetEntry (unsigned index)
 
void Clear ()
 
bool CanAdd (CommandSource &source, const Anope::string &mask, time_t expires, const Anope::string &reason)
 
XLineHasEntry (const Anope::string &mask)
 
XLineCheckAllXLines (User *u)
 
- 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 XLineManager
static void RegisterXLineManager (XLineManager *xlm)
 
static void UnregisterXLineManager (XLineManager *xlm)
 
static void CheckAll (User *u)
 
static Anope::string GenerateUID ()
 
- 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 Service
Moduleowner
 
Anope::string type
 
Anope::string name
 
- Static Public Attributes inherited from XLineManager
static std::list< XLineManager * > XLineManagers
 

Detailed Description

Definition at line 132 of file operserv.cpp.

Constructor & Destructor Documentation

SNLineManager::SNLineManager ( Module creator)
inline

Definition at line 135 of file operserv.cpp.

Member Function Documentation

bool SNLineManager::Check ( User u,
const XLine x 
)
inlinevirtual

Check a user against an xline

Parameters
uThe user
xThe xline

Implements XLineManager.

Definition at line 162 of file operserv.cpp.

References Anope::Match().

void SNLineManager::OnExpire ( const XLine x)
inlinevirtual

Called when an XLine expires

Parameters
xThe xline

Reimplemented from XLineManager.

Definition at line 142 of file operserv.cpp.

void SNLineManager::OnMatch ( User u,
XLine x 
)
inlinevirtual

Called when a user matches a xline in this XLineManager

Parameters
uThe user
xThe XLine they match

Implements XLineManager.

Definition at line 137 of file operserv.cpp.

References Send().

void SNLineManager::Send ( User u,
XLine x 
)
inlinevirtual

Called to send an XLine to the IRCd

Parameters
uThe user, if we know it
xThe xline

Implements XLineManager.

Definition at line 147 of file operserv.cpp.

References IRCDProto::CanSNLine, IRCD, and IRCDProto::SendSGLine().

Referenced by OnMatch().

void SNLineManager::SendDel ( XLine x)
inlinevirtual

Called to remove an XLine from the IRCd

Parameters
xThe XLine

Implements XLineManager.

Definition at line 156 of file operserv.cpp.

References IRCDProto::CanSNLine, IRCD, and IRCDProto::SendSGLineDel().


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