Public Member Functions | Private Member Functions | Private Attributes

CSSeen Class Reference

Inherits Module.

Collaboration diagram for CSSeen:
Collaboration graph
[legend]

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

Detailed Description

Definition at line 320 of file cs_seen.cpp.


Constructor & Destructor Documentation

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().


Member Function Documentation

void CSSeen::OnJoinChannel ( User u,
Channel c 
) [inline, virtual]

Called when a user joins a channel

Parameters:
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

Parameters:
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.

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 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.

Parameters:
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

Parameters:
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

Parameters:
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]

Field Documentation

Definition at line 324 of file cs_seen.cpp.

Definition at line 323 of file cs_seen.cpp.

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.


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