Inherits Module.

Public Member Functions | |
| CSSeen (const Anope::string &modname, const Anope::string &creator) | |
| void | OnReload () anope_override |
| void | OnUserConnect (User *u, bool &exempt) anope_override |
| void | OnUserNickChange (User *u, const Anope::string &oldnick) anope_override |
| void | OnUserQuit (User *u, const Anope::string &msg) anope_override |
| void | OnJoinChannel (User *u, Channel *c) anope_override |
| void | OnPartChannel (User *u, Channel *c, const Anope::string &channel, const Anope::string &msg) anope_override |
| void | OnUserKicked (Channel *c, User *target, MessageSource &source, const Anope::string &msg) anope_override |
Private Member Functions | |
| void | UpdateUser (const User *u, const TypeInfo Type, const Anope::string &nick, const Anope::string &nick2, const Anope::string &channel, const Anope::string &message) |
Private Attributes | |
| Serialize::Type | seeninfo_type |
| CommandSeen | commandseen |
| CommandOSSeen | commandosseen |
| DataBasePurger | purger |
Definition at line 320 of file cs_seen.cpp.
| CSSeen::CSSeen | ( | const Anope::string & | modname, | |
| const Anope::string & | creator | |||
| ) | [inline] |
Definition at line 327 of file cs_seen.cpp.
References ModuleManager::Attach(), I_OnUserKicked, OnReload(), and Module::SetAuthor().
Called when a user joins a channel
| u | The user | |
| channel | The channel |
Reimplemented from Module.
Definition at line 370 of file cs_seen.cpp.
References JOIN, and UpdateUser().
| void CSSeen::OnPartChannel | ( | User * | u, | |
| Channel * | c, | |||
| const Anope::string & | channel, | |||
| const Anope::string & | msg | |||
| ) | [inline, virtual] |
Called when a user parts a channel
| u | The user | |
| c | The channel, may be NULL if the channel no longer exists | |
| channel | The channel name | |
| msg | The part reason |
Reimplemented from Module.
Definition at line 375 of file cs_seen.cpp.
References PART, and UpdateUser().
| void CSSeen::OnReload | ( | ) | [inline, virtual] |
Called when Services' configuration has been loaded.
Reimplemented from Module.
Definition at line 343 of file cs_seen.cpp.
References Anope::DoTime(), expiretimeout, Timer::GetSecs(), purger, purgetime, ConfigReader::ReadValue(), and Timer::SetSecs().
Referenced by CSSeen().
| void CSSeen::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 353 of file cs_seen.cpp.
References NEW, and UpdateUser().
| void CSSeen::OnUserKicked | ( | Channel * | c, | |
| User * | target, | |||
| MessageSource & | source, | |||
| const Anope::string & | kickmsg | |||
| ) | [inline, virtual] |
Called when the ircd notifies that a user has been kicked from a channel.
| c | The channel the user has been kicked from. | |
| target | The user that has been kicked. | |
| source | The nick of the sender. | |
| kickmsg | The reason for the kick. |
Reimplemented from Module.
Definition at line 380 of file cs_seen.cpp.
References KICK, and UpdateUser().
| void CSSeen::OnUserNickChange | ( | User * | u, | |
| const Anope::string & | oldnick | |||
| ) | [inline, virtual] |
Called after a user changed the nick
| u | The user. | |
| oldnick | The old nick of the user |
Reimplemented from Module.
Definition at line 359 of file cs_seen.cpp.
References NICK_FROM, NICK_TO, and UpdateUser().
| void CSSeen::OnUserQuit | ( | User * | u, | |
| const Anope::string & | msg | |||
| ) | [inline, virtual] |
Called on a QUIT
| u | The user | |
| msg | The quit message |
Reimplemented from Module.
Definition at line 365 of file cs_seen.cpp.
References QUIT, and UpdateUser().
| void CSSeen::UpdateUser | ( | const User * | u, | |
| const TypeInfo | Type, | |||
| const Anope::string & | nick, | |||
| const Anope::string & | nick2, | |||
| const Anope::string & | channel, | |||
| const Anope::string & | message | |||
| ) | [inline, private] |
Definition at line 386 of file cs_seen.cpp.
References SeenInfo::channel, Anope::CurTime, FindInfo(), User::GetDisplayedHost(), User::GetVIdent(), Server::IsSynced(), SeenInfo::last, SeenInfo::message, SeenInfo::nick, SeenInfo::nick2, User::server, SeenInfo::type, and SeenInfo::vhost.
Referenced by OnJoinChannel(), OnPartChannel(), OnUserConnect(), OnUserKicked(), OnUserNickChange(), and OnUserQuit().
CommandOSSeen CSSeen::commandosseen [private] |
Definition at line 324 of file cs_seen.cpp.
CommandSeen CSSeen::commandseen [private] |
Definition at line 323 of file cs_seen.cpp.
DataBasePurger CSSeen::purger [private] |
Definition at line 325 of file cs_seen.cpp.
Referenced by OnReload().
Serialize::Type CSSeen::seeninfo_type [private] |
Definition at line 322 of file cs_seen.cpp.
1.7.1