Inherits Module.

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< XLineManager > | akills |
Definition at line 605 of file os_session.cpp.
| OSSession::OSSession | ( | const Anope::string & | modname, | |
| const Anope::string & | creator | |||
| ) | [inline] |
Definition at line 711 of file os_session.cpp.
References ModuleManager::Attach(), I_OnPreUserLogoff, PRIORITY_FIRST, Module::SetAuthor(), Module::SetPermanent(), and ModuleManager::SetPriority().
| void OSSession::AddSession | ( | User * | u, | |
| bool | exempt | |||
| ) | [inline, private] |
Definition at line 614 of file os_session.cpp.
References MySessionService::AddSession(), akills, Anope::string::c_str(), Config, Session::count, Anope::CurTime, ServerConfig::DefSessionLimit, Anope::string::empty(), Anope::string::find(), MySessionService::FindException(), MySessionService::FindSession(), XLineManager::GenerateUID(), Session::hits, User::ip, User::Kill(), Exception::limit, ServerConfig::MaxSessionKill, Anope::string::npos, ServerConfig::OperServ, OperServ, User::SendMessage(), ServerConfig::SessionAutoKillExpiry, ServerConfig::SessionIPv4CIDR, ServerConfig::SessionIPv6CIDR, ServerConfig::SessionLimitDetailsLoc, ServerConfig::SessionLimitExceeded, and ss.
Referenced by OnUserConnect().
| void OSSession::DelSession | ( | User * | u | ) | [inline, private] |
Definition at line 683 of file os_session.cpp.
References Session::count, MySessionService::DelSession(), MySessionService::FindSession(), User::ip, LOG_DEBUG, and ss.
Referenced by OnPreUserLogoff().
| 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)
| 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.
| 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.
ServiceReference<XLineManager> OSSession::akills [private] |
Definition at line 612 of file os_session.cpp.
Referenced by AddSession().
Definition at line 611 of file os_session.cpp.
CommandOSSession OSSession::commandossession [private] |
Definition at line 610 of file os_session.cpp.
Serialize::Type OSSession::exception_type [private] |
Definition at line 607 of file os_session.cpp.
ExpireTimer OSSession::expiretimer [private] |
Definition at line 609 of file os_session.cpp.
MySessionService OSSession::ss [private] |
Definition at line 608 of file os_session.cpp.
Referenced by AddSession(), and DelSession().
1.7.1