Public Member Functions | Private Member Functions | Private Attributes

OSSession Class Reference

Inherits Module.

Collaboration diagram for OSSession:
Collaboration graph
[legend]

Public Member Functions

 OSSession (const Anope::string &modname, const Anope::string &creator)
void OnUserConnect (User *user, bool &exempt) anope_override
void OnPreUserLogoff (User *u) anope_override

Private Member Functions

void AddSession (User *u, bool exempt)
void DelSession (User *u)

Private Attributes

Serialize::Type exception_type
MySessionService ss
ExpireTimer expiretimer
CommandOSSession commandossession
CommandOSException commandosexception
ServiceReference< XLineManagerakills

Detailed Description

Definition at line 605 of file os_session.cpp.


Constructor & Destructor Documentation

OSSession::OSSession ( const Anope::string modname,
const Anope::string creator 
) [inline]

Member Function Documentation

void OSSession::AddSession ( User u,
bool  exempt 
) [inline, private]
void OSSession::DelSession ( User u  )  [inline, private]
void OSSession::OnPreUserLogoff ( User u  )  [inline, virtual]

Called when a user disconnects, before and after being internally removed from all lists (channels, user list, etc)

Parameters:
u The user

Reimplemented from Module.

Definition at line 728 of file os_session.cpp.

References Config, DelSession(), and ServerConfig::LimitSessions.

void OSSession::OnUserConnect ( User u,
bool &  exempt 
) [inline, virtual]

Called when a new user connects to the network.

Parameters:
u The connecting user.
exempt set to true/is true if the user should be excepted from bans etc

Reimplemented from Module.

Definition at line 722 of file os_session.cpp.

References AddSession(), Config, and ServerConfig::LimitSessions.


Field Documentation

Definition at line 612 of file os_session.cpp.

Referenced by AddSession().

Definition at line 611 of file os_session.cpp.

Definition at line 610 of file os_session.cpp.

Serialize::Type OSSession::exception_type [private]

Definition at line 607 of file os_session.cpp.

Definition at line 609 of file os_session.cpp.

Definition at line 608 of file os_session.cpp.

Referenced by AddSession(), and DelSession().


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