Anope IRC Services  Version 2.0
Data Structures | Public Member Functions | Private Attributes
NSSet Class Reference
Inheritance diagram for NSSet:
Inheritance graph
[legend]
Collaboration diagram for NSSet:
Collaboration graph
[legend]

Data Structures

struct  KeepModes
 

Public Member Functions

 NSSet (const Anope::string &modname, const Anope::string &creator)
 
EventReturn OnPreCommand (CommandSource &source, Command *command, std::vector< Anope::string > &params) anope_override
 
void OnSetCorrectModes (User *user, Channel *chan, AccessGroup &access, bool &give_modes, bool &take_modes) anope_override
 
void OnPreNickExpire (NickAlias *na, bool &expire) anope_override
 
void OnNickInfo (CommandSource &source, NickAlias *na, InfoFormatter &info, bool show_hidden) anope_override
 
void OnUserModeSet (const MessageSource &setter, User *u, const Anope::string &mname) anope_override
 
void OnUserModeUnset (const MessageSource &setter, User *u, const Anope::string &mname) anope_override
 
void OnUserLogin (User *u) anope_override
 
- Public Member Functions inherited from Module
 Module (const Anope::string &modname, const Anope::string &loadernick, ModType type=THIRD)
 
virtual ~Module ()
 
void SetPermanent (bool state)
 
bool GetPermanent () const
 
void SetVersion (const Anope::string &version)
 
void SetAuthor (const Anope::string &author)
 
ModuleVersion GetVersion () const
 
virtual void OnPreUserKicked (const MessageSource &source, ChanUserContainer *cu, const Anope::string &kickmsg)
 
virtual void OnUserKicked (const MessageSource &source, User *target, const Anope::string &channel, ChannelStatus &status, const Anope::string &kickmsg)
 
virtual void OnReload (Configuration::Conf *conf)
 
virtual EventReturn OnPreBotAssign (User *sender, ChannelInfo *ci, BotInfo *bi)
 
virtual void OnBotAssign (User *sender, ChannelInfo *ci, BotInfo *bi)
 
virtual EventReturn OnBotUnAssign (User *sender, ChannelInfo *ci)
 
virtual void OnUserConnect (User *u, bool &exempt)
 
virtual void OnNewServer (Server *s)
 
virtual void OnUserNickChange (User *u, const Anope::string &oldnick)
 
virtual EventReturn OnPreHelp (CommandSource &source, const std::vector< Anope::string > &params)
 
virtual void OnPostHelp (CommandSource &source, const std::vector< Anope::string > &params)
 
virtual void OnPostCommand (CommandSource &source, Command *command, const std::vector< Anope::string > &params)
 
virtual void OnSaveDatabase ()
 
virtual EventReturn OnLoadDatabase ()
 
virtual EventReturn OnEncrypt (const Anope::string &src, Anope::string &dest)
 
virtual EventReturn OnDecrypt (const Anope::string &hashm, const Anope::string &src, Anope::string &dest)
 
virtual EventReturn OnBotFantasy (CommandSource &source, Command *c, ChannelInfo *ci, const std::vector< Anope::string > &params)
 
virtual EventReturn OnBotNoFantasyAccess (CommandSource &source, Command *c, ChannelInfo *ci, const std::vector< Anope::string > &params)
 
virtual void OnBotBan (User *u, ChannelInfo *ci, const Anope::string &mask)
 
virtual void OnBadWordAdd (ChannelInfo *ci, const BadWord *bw)
 
virtual void OnBadWordDel (ChannelInfo *ci, const BadWord *bw)
 
virtual void OnCreateBot (BotInfo *bi)
 
virtual void OnDelBot (BotInfo *bi)
 
virtual EventReturn OnBotKick (BotInfo *bi, Channel *c, User *u, const Anope::string &reason)
 
virtual void OnPrePartChannel (User *u, Channel *c)
 
virtual void OnPartChannel (User *u, Channel *c, const Anope::string &channel, const Anope::string &msg)
 
virtual void OnLeaveChannel (User *u, Channel *c)
 
virtual void OnJoinChannel (User *u, Channel *c)
 
virtual void OnTopicUpdated (Channel *c, const Anope::string &user, const Anope::string &topic)
 
virtual void OnPreChanExpire (ChannelInfo *ci, bool &expire)
 
virtual void OnChanExpire (ChannelInfo *ci)
 
virtual void OnPreServerConnect ()
 
virtual void OnServerConnect ()
 
virtual void OnPreUplinkSync (Server *serv)
 
virtual void OnServerDisconnect ()
 
virtual void OnRestart ()
 
virtual void OnShutdown ()
 
virtual void OnNickExpire (NickAlias *na)
 
virtual void OnDefconLevel (int level)
 
virtual EventReturn OnExceptionAdd (Exception *ex)
 
virtual void OnExceptionDel (CommandSource &source, Exception *ex)
 
virtual EventReturn OnAddXLine (CommandSource &source, const XLine *x, XLineManager *xlm)
 
virtual void OnDelXLine (CommandSource &source, const XLine *x, XLineManager *xlm)
 
virtual EventReturn IsServicesOper (User *u)
 
virtual void OnServerQuit (Server *server)
 
virtual void OnUserQuit (User *u, const Anope::string &msg)
 
virtual void OnPreUserLogoff (User *u)
 
virtual void OnPostUserLogoff (User *u)
 
virtual void OnBotCreate (BotInfo *bi)
 
virtual void OnBotChange (BotInfo *bi)
 
virtual void OnBotDelete (BotInfo *bi)
 
virtual void OnAccessDel (ChannelInfo *ci, CommandSource &source, ChanAccess *access)
 
virtual void OnAccessAdd (ChannelInfo *ci, CommandSource &source, ChanAccess *access)
 
virtual void OnAccessClear (ChannelInfo *ci, CommandSource &source)
 
virtual void OnLevelChange (CommandSource &source, ChannelInfo *ci, const Anope::string &priv, int16_t what)
 
virtual EventReturn OnChanDrop (CommandSource &source, ChannelInfo *ci)
 
virtual void OnChanRegistered (ChannelInfo *ci)
 
virtual void OnChanSuspend (ChannelInfo *ci)
 
virtual void OnChanUnsuspend (ChannelInfo *ci)
 
virtual void OnCreateChan (ChannelInfo *ci)
 
virtual void OnDelChan (ChannelInfo *ci)
 
virtual void OnChannelCreate (Channel *c)
 
virtual void OnChannelDelete (Channel *c)
 
virtual void OnAkickAdd (CommandSource &source, ChannelInfo *ci, const AutoKick *ak)
 
virtual void OnAkickDel (CommandSource &source, ChannelInfo *ci, const AutoKick *ak)
 
virtual EventReturn OnCheckKick (User *u, Channel *c, Anope::string &mask, Anope::string &reason)
 
virtual void OnChanInfo (CommandSource &source, ChannelInfo *ci, InfoFormatter &info, bool show_hidden)
 
virtual EventReturn OnCheckPriv (const ChanAccess *access, const Anope::string &priv)
 
virtual EventReturn OnGroupCheckPriv (const AccessGroup *group, const Anope::string &priv)
 
virtual void OnNickDrop (CommandSource &source, NickAlias *na)
 
virtual void OnNickGroup (User *u, NickAlias *target)
 
virtual void OnNickIdentify (User *u)
 
virtual void OnNickLogout (User *u)
 
virtual void OnNickRegister (User *user, NickAlias *na, const Anope::string &pass)
 
virtual void OnNickSuspend (NickAlias *na)
 
virtual void OnNickUnsuspended (NickAlias *na)
 
virtual void OnDelNick (NickAlias *na)
 
virtual void OnNickCoreCreate (NickCore *nc)
 
virtual void OnDelCore (NickCore *nc)
 
virtual void OnChangeCoreDisplay (NickCore *nc, const Anope::string &newdisplay)
 
virtual void OnNickClearAccess (NickCore *nc)
 
virtual void OnNickAddAccess (NickCore *nc, const Anope::string &entry)
 
virtual void OnNickEraseAccess (NickCore *nc, const Anope::string &entry)
 
virtual void OnNickClearCert (NickCore *nc)
 
virtual void OnNickAddCert (NickCore *nc, const Anope::string &entry)
 
virtual void OnNickEraseCert (NickCore *nc, const Anope::string &entry)
 
virtual void OnBotInfo (CommandSource &source, BotInfo *bi, ChannelInfo *ci, InfoFormatter &info)
 
virtual void OnCheckAuthentication (User *u, IdentifyRequest *req)
 
virtual void OnNickUpdate (User *u)
 
virtual void OnFingerprint (User *u)
 
virtual void OnUserAway (User *u, const Anope::string &message)
 
virtual void OnInvite (User *source, Channel *c, User *targ)
 
virtual void OnDeleteVhost (NickAlias *na)
 
virtual void OnSetVhost (NickAlias *na)
 
virtual void OnSetDisplayedHost (User *)
 
virtual void OnMemoSend (const Anope::string &source, const Anope::string &target, MemoInfo *mi, Memo *m)
 
virtual void OnMemoDel (const Anope::string &target, MemoInfo *mi, const Memo *m)
 
virtual EventReturn OnChannelModeSet (Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string &param)
 
virtual EventReturn OnChannelModeUnset (Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string &param)
 
virtual void OnChannelModeAdd (ChannelMode *cm)
 
virtual void OnUserModeAdd (UserMode *um)
 
virtual EventReturn OnMLock (ChannelInfo *ci, ModeLock *lock)
 
virtual EventReturn OnUnMLock (ChannelInfo *ci, ModeLock *lock)
 
virtual void OnModuleLoad (User *u, Module *m)
 
virtual void OnModuleUnload (User *u, Module *m)
 
virtual void OnServerSync (Server *s)
 
virtual void OnUplinkSync (Server *s)
 
virtual EventReturn OnBotPrivmsg (User *u, BotInfo *bi, Anope::string &message)
 
virtual void OnBotNotice (User *u, BotInfo *bi, Anope::string &message)
 
virtual void OnPrivmsg (User *u, Channel *c, Anope::string &msg)
 
virtual void OnLog (Log *l)
 
virtual void OnLogMessage (LogInfo *li, const Log *l, const Anope::string &msg)
 
virtual void OnDnsRequest (DNS::Query &req, DNS::Query *reply)
 
virtual void OnCheckModes (Reference< Channel > &c)
 
virtual void OnChannelSync (Channel *c)
 
virtual void OnSerializeCheck (Serialize::Type *)
 
virtual void OnSerializableConstruct (Serializable *)
 
virtual void OnSerializableDestruct (Serializable *)
 
virtual void OnSerializableUpdate (Serializable *)
 
virtual void OnSerializeTypeCreate (Serialize::Type *)
 
virtual EventReturn OnSetChannelOption (CommandSource &source, Command *cmd, ChannelInfo *ci, const Anope::string &setting)
 
virtual EventReturn OnSetNickOption (CommandSource &source, Command *cmd, NickCore *nc, const Anope::string &setting)
 
virtual EventReturn OnMessage (MessageSource &source, Anope::string &command, std::vector< Anope::string > &param)
 
virtual EventReturn OnCanSet (User *u, const ChannelMode *cm)
 
virtual EventReturn OnCheckDelete (Channel *)
 
virtual void OnExpireTick ()
 
virtual EventReturn OnNickValidate (User *u, NickAlias *na)
 
- Public Member Functions inherited from Extensible
virtual ~Extensible ()
 
template<typename T >
T * GetExt (const Anope::string &name) const
 
bool HasExt (const Anope::string &name) const
 
template<typename T >
T * Extend (const Anope::string &name, const T &what)
 
template<typename T >
T * Extend (const Anope::string &name)
 
template<typename T >
T * Require (const Anope::string &name)
 
template<typename T >
void Shrink (const Anope::string &name)
 
template<>
bool * Extend (const Anope::string &name, const bool &what)
 

Private Attributes

CommandNSSet commandnsset
 
CommandNSSASet commandnssaset
 
CommandNSSetAutoOp commandnssetautoop
 
CommandNSSASetAutoOp commandnssasetautoop
 
CommandNSSetDisplay commandnssetdisplay
 
CommandNSSASetDisplay commandnssasetdisplay
 
CommandNSSetEmail commandnssetemail
 
CommandNSSASetEmail commandnssasetemail
 
CommandNSSetKeepModes commandnssetkeepmodes
 
CommandNSSASetKeepModes commandnssasetkeepmodes
 
CommandNSSetKill commandnssetkill
 
CommandNSSASetKill commandnssasetkill
 
CommandNSSetLanguage commandnssetlanguage
 
CommandNSSASetLanguage commandnssasetlanguage
 
CommandNSSetMessage commandnssetmessage
 
CommandNSSASetMessage commandnssasetmessage
 
CommandNSSetPassword commandnssetpassword
 
CommandNSSASetPassword commandnssasetpassword
 
CommandNSSetSecure commandnssetsecure
 
CommandNSSASetSecure commandnssasetsecure
 
CommandNSSASetNoexpire commandnssasetnoexpire
 
SerializableExtensibleItem< bool > autoop
 
SerializableExtensibleItem< bool > killprotect
 
SerializableExtensibleItem< bool > kill_quick
 
SerializableExtensibleItem< bool > kill_immed
 
SerializableExtensibleItem< bool > message
 
SerializableExtensibleItem< bool > secure
 
SerializableExtensibleItem< bool > noexpire
 
NSSet::KeepModes keep_modes
 
PrimitiveExtensibleItem
< std::pair< Anope::string,
Anope::string > > 
ns_set_email
 

Additional Inherited Members

- Static Public Member Functions inherited from Extensible
static void ExtensibleSerialize (const Extensible *, const Serializable *, Serialize::Data &data)
 
static void ExtensibleUnserialize (Extensible *, Serializable *, Serialize::Data &data)
 
- Data Fields inherited from Module
Anope::string name
 
ModType type
 
Anope::string filename
 
void * handle
 
time_t created
 
Anope::string version
 
Anope::string author
 
- Data Fields inherited from Extensible
std::set< ExtensibleBase * > extension_items
 

Detailed Description

Definition at line 1127 of file ns_set.cpp.

Constructor & Destructor Documentation

NSSet::NSSet ( const Anope::string modname,
const Anope::string creator 
)
inline

Definition at line 1213 of file ns_set.cpp.

Member Function Documentation

void NSSet::OnNickInfo ( CommandSource source,
NickAlias na,
InfoFormatter info,
bool  show_hidden 
)
inlinevirtual

Called when a user requests info for a nick

Parameters
sourceThe user requesting info
naThe nick the user is requesting info from
infoData to show the user requesting information
show_hiddentrue if we should show the user everything

Reimplemented from Module.

Definition at line 1274 of file ns_set.cpp.

References _, BaseExtensibleItem< T >::HasExt(), and keep_modes.

EventReturn NSSet::OnPreCommand ( CommandSource source,
Command command,
std::vector< Anope::string > &  params 
)
inlinevirtual

Called before a command is due to be executed.

Parameters
sourceThe source of the command
commandThe command the user is executing
paramsThe parameters the user is sending
Returns
EVENT_CONTINUE to let other modules decide, EVENT_STOP to halt the command and not process it

Reimplemented from Module.

Definition at line 1236 of file ns_set.cpp.

References _, Anope::string::c_str(), NickCore::email, EVENT_CONTINUE, EVENT_STOP, BaseExtensibleItem< T >::Get(), LOG_COMMAND, and BaseExtensibleItem< T >::Unset().

void NSSet::OnPreNickExpire ( NickAlias na,
bool &  expire 
)
inlinevirtual

Called before a nick expires

Parameters
naThe nick
expireSet to true to allow the nick to expire

Reimplemented from Module.

Definition at line 1268 of file ns_set.cpp.

References BaseExtensibleItem< T >::HasExt().

void NSSet::OnSetCorrectModes ( User user,
Channel chan,
AccessGroup access,
bool &  give_modes,
bool &  take_modes 
)
inlinevirtual

Called to set the correct modes on the user on the given channel

Parameters
userThe user
chanThe channel
accessThe user's access on the channel
give_modesIf giving modes is desired
take_modesIf taking modes is desired

Reimplemented from Module.

Definition at line 1259 of file ns_set.cpp.

References BaseExtensibleItem< T >::HasExt().

void NSSet::OnUserLogin ( User u)
inlinevirtual

Called when a user is logged into an account

Parameters
uThe user

Reimplemented from Module.

Definition at line 1309 of file ns_set.cpp.

References Mode::CanSet(), ModeManager::FindUserModeByName(), BaseExtensibleItem< T >::HasExt(), keep_modes, and modes.

void NSSet::OnUserModeSet ( const MessageSource setter,
User u,
const Anope::string mname 
)
inlinevirtual

Called when a mode is set on a user

Parameters
setterwho/what is setting the mode
uThe user
mnameThe mode name

Reimplemented from Module.

Definition at line 1297 of file ns_set.cpp.

void NSSet::OnUserModeUnset ( const MessageSource setter,
User u,
const Anope::string mname 
)
inlinevirtual

Called when a mode is unset from a user

Parameters
setterwho/what is setting the mode
uThe user
mnameThe mode name

Reimplemented from Module.

Definition at line 1303 of file ns_set.cpp.

Field Documentation

SerializableExtensibleItem<bool> NSSet::autoop
private

Definition at line 1161 of file ns_set.cpp.

CommandNSSASet NSSet::commandnssaset
private

Definition at line 1130 of file ns_set.cpp.

CommandNSSASetAutoOp NSSet::commandnssasetautoop
private

Definition at line 1133 of file ns_set.cpp.

CommandNSSASetDisplay NSSet::commandnssasetdisplay
private

Definition at line 1136 of file ns_set.cpp.

CommandNSSASetEmail NSSet::commandnssasetemail
private

Definition at line 1139 of file ns_set.cpp.

CommandNSSASetKeepModes NSSet::commandnssasetkeepmodes
private

Definition at line 1142 of file ns_set.cpp.

CommandNSSASetKill NSSet::commandnssasetkill
private

Definition at line 1145 of file ns_set.cpp.

CommandNSSASetLanguage NSSet::commandnssasetlanguage
private

Definition at line 1148 of file ns_set.cpp.

CommandNSSASetMessage NSSet::commandnssasetmessage
private

Definition at line 1151 of file ns_set.cpp.

CommandNSSASetNoexpire NSSet::commandnssasetnoexpire
private

Definition at line 1159 of file ns_set.cpp.

CommandNSSASetPassword NSSet::commandnssasetpassword
private

Definition at line 1154 of file ns_set.cpp.

CommandNSSASetSecure NSSet::commandnssasetsecure
private

Definition at line 1157 of file ns_set.cpp.

CommandNSSet NSSet::commandnsset
private

Definition at line 1129 of file ns_set.cpp.

CommandNSSetAutoOp NSSet::commandnssetautoop
private

Definition at line 1132 of file ns_set.cpp.

CommandNSSetDisplay NSSet::commandnssetdisplay
private

Definition at line 1135 of file ns_set.cpp.

CommandNSSetEmail NSSet::commandnssetemail
private

Definition at line 1138 of file ns_set.cpp.

CommandNSSetKeepModes NSSet::commandnssetkeepmodes
private

Definition at line 1141 of file ns_set.cpp.

CommandNSSetKill NSSet::commandnssetkill
private

Definition at line 1144 of file ns_set.cpp.

CommandNSSetLanguage NSSet::commandnssetlanguage
private

Definition at line 1147 of file ns_set.cpp.

CommandNSSetMessage NSSet::commandnssetmessage
private

Definition at line 1150 of file ns_set.cpp.

CommandNSSetPassword NSSet::commandnssetpassword
private

Definition at line 1153 of file ns_set.cpp.

CommandNSSetSecure NSSet::commandnssetsecure
private

Definition at line 1156 of file ns_set.cpp.

NSSet::KeepModes NSSet::keep_modes
private

Referenced by OnNickInfo(), and OnUserLogin().

SerializableExtensibleItem<bool> NSSet::kill_immed
private

Definition at line 1161 of file ns_set.cpp.

SerializableExtensibleItem<bool> NSSet::kill_quick
private

Definition at line 1161 of file ns_set.cpp.

SerializableExtensibleItem<bool> NSSet::killprotect
private

Definition at line 1161 of file ns_set.cpp.

SerializableExtensibleItem<bool> NSSet::message
private

Definition at line 1161 of file ns_set.cpp.

SerializableExtensibleItem<bool> NSSet::noexpire
private

Definition at line 1161 of file ns_set.cpp.

PrimitiveExtensibleItem<std::pair<Anope::string, Anope::string > > NSSet::ns_set_email
private

Definition at line 1210 of file ns_set.cpp.

SerializableExtensibleItem<bool> NSSet::secure
private

Definition at line 1161 of file ns_set.cpp.


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