Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
SQLineManager Class Reference
Inheritance diagram for SQLineManager:
Inheritance graph
[legend]
Collaboration diagram for SQLineManager:
Collaboration graph
[legend]

Public Member Functions

 SQLineManager (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
 
XLineCheckChannel (Channel *c)
 
- 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)
 

Private Attributes

ServiceReference< NickServServicenickserv
 

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 66 of file operserv.cpp.

Constructor & Destructor Documentation

SQLineManager::SQLineManager ( Module creator)
inline

Definition at line 71 of file operserv.cpp.

Member Function Documentation

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

Check a user against an xline

Parameters
uThe user
xThe xline

Implements XLineManager.

Definition at line 108 of file operserv.cpp.

References Anope::Match().

XLine* SQLineManager::CheckChannel ( Channel c)
inline
void SQLineManager::OnExpire ( const XLine x)
inlinevirtual

Called when an XLine expires

Parameters
xThe xline

Reimplemented from XLineManager.

Definition at line 78 of file operserv.cpp.

void SQLineManager::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 73 of file operserv.cpp.

References Send().

Referenced by OperServCore::OnCheckKick().

void SQLineManager::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 83 of file operserv.cpp.

References IRCDProto::CanSQLine, IRCDProto::CanSQLineChannel, IRCD, and IRCDProto::SendSQLine().

Referenced by OnMatch().

void SQLineManager::SendDel ( XLine x)
inlinevirtual

Called to remove an XLine from the IRCd

Parameters
xThe XLine

Implements XLineManager.

Definition at line 100 of file operserv.cpp.

References IRCDProto::CanSQLine, IRCDProto::CanSQLineChannel, IRCD, and IRCDProto::SendSQLineDel().

Field Documentation

ServiceReference<NickServService> SQLineManager::nickserv
private

Definition at line 68 of file operserv.cpp.


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