Public Member Functions | Private Attributes

NickServCore Class Reference

Inherits Module.

Collaboration diagram for NickServCore:
Collaboration graph
[legend]

Public Member Functions

 NickServCore (const Anope::string &modname, const Anope::string &creator)
 ~NickServCore ()
void OnBotDelete (BotInfo *bi) anope_override
void OnDelNick (NickAlias *na) anope_override
void OnDelCore (NickCore *nc) anope_override
void OnChangeCoreDisplay (NickCore *nc, const Anope::string &newdisplay) anope_override
void OnNickIdentify (User *u) anope_override
void OnNickGroup (User *u, NickAlias *target) anope_override
void OnNickUpdate (User *u) anope_override
void OnUserConnect (User *u, bool &exempt) anope_override
void OnPostUserLogoff (User *u) anope_override
void OnServerSync (Server *s) anope_override
void OnUserNickChange (User *u, const Anope::string &oldnick) anope_override
void OnUserModeSet (User *u, const Anope::string &mname) anope_override
EventReturn OnPreHelp (CommandSource &source, const std::vector< Anope::string > &params) anope_override
void OnPostHelp (CommandSource &source, const std::vector< Anope::string > &params) anope_override

Private Attributes

MyNickServService mynickserv
ExpireCallback expires

Detailed Description

Definition at line 186 of file nickserv.cpp.


Constructor & Destructor Documentation

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

Definition at line 205 of file nickserv.cpp.

References NickServ.


Member Function Documentation

void NickServCore::OnBotDelete ( BotInfo bi  )  [inline, virtual]

Called when a bot is deleted

Parameters:
bi The bot

Reimplemented from Module.

Definition at line 210 of file nickserv.cpp.

References NickServ.

void NickServCore::OnChangeCoreDisplay ( NickCore nc,
const Anope::string newdisplay 
) [inline, virtual]

Called on change_core_display()

Parameters:
nc pointer to the NickCore
newdisplay the new display

Reimplemented from Module.

Definition at line 243 of file nickserv.cpp.

References LOG_NORMAL, and NickServ.

void NickServCore::OnDelCore ( NickCore nc  )  [inline, virtual]

Called on delcore()

Parameters:
nc pointer to the NickCore

Reimplemented from Module.

Definition at line 227 of file nickserv.cpp.

References FOREACH_MOD, I_OnNickLogout, IRCD, User::Logout(), NickServ, Module::OnNickLogout(), User::RemoveMode(), and IRCDProto::SendLogout().

void NickServCore::OnDelNick ( NickAlias na  )  [inline, virtual]

Called on delnick() @ param na pointer to the nickalias

Reimplemented from Module.

Definition at line 216 of file nickserv.cpp.

References User::Account(), User::Find(), IRCD, User::Logout(), NickServ, User::RemoveMode(), and IRCDProto::SendLogout().

void NickServCore::OnNickGroup ( User u,
NickAlias target 
) [inline, virtual]

Called when a user groups their nick

Parameters:
u The user grouping
target The target they're grouping to

Reimplemented from Module.

Definition at line 289 of file nickserv.cpp.

References NickServ.

void NickServCore::OnNickIdentify ( User u  )  [inline, virtual]
void NickServCore::OnNickUpdate ( User u  )  [inline, virtual]

Called when a user does /ns update

Parameters:
u The user

Reimplemented from Module.

Definition at line 295 of file nickserv.cpp.

References ChanUserContainer::chan, and Channel::SetCorrectModes().

void NickServCore::OnPostHelp ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, virtual]

Called when someone uses the generic/help command

Parameters:
source Command source
params Params

Reimplemented from Module.

Definition at line 385 of file nickserv.cpp.

References _, Anope::string::c_str(), Config, ServerConfig::NickServ, and ServerConfig::NSExpire.

void NickServCore::OnPostUserLogoff ( User u  )  [inline, virtual]

Reimplemented from Module.

Definition at line 318 of file nickserv.cpp.

References NickAlias::Find(), and NickAlias::OnCancel().

EventReturn NickServCore::OnPreHelp ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, virtual]

Called when someone uses the generic/help command

Parameters:
source Command source
params Params
Returns:
EVENT_STOP to stop processing

Reimplemented from Module.

Definition at line 365 of file nickserv.cpp.

References _, Anope::string::c_str(), Config, EVENT_CONTINUE, ServerConfig::NickServ, ServerConfig::NoNicknameOwnership, and ServerConfig::UseStrictPrivMsgString.

void NickServCore::OnServerSync ( Server s  )  [inline, virtual]

Called when a server is synced

Parameters:
s The server, can be our uplink server

Reimplemented from Module.

Definition at line 325 of file nickserv.cpp.

References User::IsIdentified(), mynickserv, User::server, UserListByNick, and MyNickServService::Validate().

void NickServCore::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 306 of file nickserv.cpp.

References Config, Anope::string::empty(), NickAlias::Find(), mynickserv, NickServ, ServerConfig::NoNicknameOwnership, ServerConfig::NSUnregisteredNotice, and MyNickServService::Validate().

void NickServCore::OnUserModeSet ( User u,
const Anope::string mname 
) [inline, virtual]

Called when a mode is set on a user

Parameters:
u The user
mname The mode name

Reimplemented from Module.

Definition at line 359 of file nickserv.cpp.

References NickServ.

void NickServCore::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 335 of file nickserv.cpp.

References Config, NickAlias::Find(), IRCD, mynickserv, NickServ, ServerConfig::NoNicknameOwnership, NickAlias::OnCancel(), IRCDProto::SendLogin(), and MyNickServService::Validate().


Field Documentation

Definition at line 189 of file nickserv.cpp.

Definition at line 188 of file nickserv.cpp.

Referenced by OnServerSync(), OnUserConnect(), and OnUserNickChange().


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