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

Public Member Functions

 ProtoInspIRCd20 (const Anope::string &modname, const Anope::string &creator)
 
 ~ProtoInspIRCd20 ()
 
void OnReload (Configuration::Conf *conf) anope_override
 
void OnUserNickChange (User *u, const Anope::string &) anope_override
 
void OnChannelSync (Channel *c) anope_override
 
void OnChanRegistered (ChannelInfo *ci) anope_override
 
void OnDelChan (ChannelInfo *ci) anope_override
 
EventReturn OnMLock (ChannelInfo *ci, ModeLock *lock) anope_override
 
EventReturn OnUnMLock (ChannelInfo *ci, ModeLock *lock) anope_override
 
EventReturn OnSetChannelOption (CommandSource &source, Command *cmd, ChannelInfo *ci, const Anope::string &setting) anope_override
 
EventReturn OnChannelModeUnset (Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string &param) 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 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 EventReturn OnPreHelp (CommandSource &source, const std::vector< Anope::string > &params)
 
virtual void OnPostHelp (CommandSource &source, const std::vector< Anope::string > &params)
 
virtual EventReturn OnPreCommand (CommandSource &source, Command *command, 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 OnPreNickExpire (NickAlias *na, bool &expire)
 
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 OnChanSuspend (ChannelInfo *ci)
 
virtual void OnChanUnsuspend (ChannelInfo *ci)
 
virtual void OnCreateChan (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 OnUserLogin (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 OnNickInfo (CommandSource &source, NickAlias *na, InfoFormatter &info, bool show_hidden)
 
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 void OnUserModeSet (const MessageSource &setter, User *u, const Anope::string &mname)
 
virtual void OnUserModeUnset (const MessageSource &setter, User *u, const Anope::string &mname)
 
virtual void OnChannelModeAdd (ChannelMode *cm)
 
virtual void OnUserModeAdd (UserMode *um)
 
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 OnSetCorrectModes (User *user, Channel *chan, AccessGroup &access, bool &give_modes, bool &take_modes)
 
virtual void OnSerializeCheck (Serialize::Type *)
 
virtual void OnSerializableConstruct (Serializable *)
 
virtual void OnSerializableDestruct (Serializable *)
 
virtual void OnSerializableUpdate (Serializable *)
 
virtual void OnSerializeTypeCreate (Serialize::Type *)
 
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 Member Functions

void SendChannelMetadata (Channel *c, const Anope::string &metadataname, const Anope::string &value)
 

Private Attributes

Modulem_insp12
 
InspIRCd20Proto ircd_proto
 
Message::Away message_away
 
Message::Error message_error
 
Message::Invite message_invite
 
Message::Join message_join
 
Message::Kick message_kick
 
Message::Kill message_kill
 
Message::MOTD message_motd
 
Message::Notice message_notice
 
Message::Part message_part
 
Message::Ping message_ping
 
Message::Privmsg message_privmsg
 
Message::Quit message_quit
 
Message::Stats message_stats
 
Message::Topic message_topic
 
ServiceAlias message_endburst
 
ServiceAlias message_fhost
 
ServiceAlias message_fjoin
 
ServiceAlias message_fmode
 
ServiceAlias message_ftopic
 
ServiceAlias message_idle
 
ServiceAlias message_metadata
 
ServiceAlias message_mode
 
ServiceAlias message_nick
 
ServiceAlias message_opertype
 
ServiceAlias message_rsquit
 
ServiceAlias message_server
 
ServiceAlias message_squit
 
ServiceAlias message_time
 
ServiceAlias message_uid
 
IRCDMessageCapab message_capab
 
IRCDMessageEncap message_encap
 
IRCDMessageFIdent message_fident
 
bool use_server_side_topiclock
 
bool use_server_side_mlock
 

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 795 of file inspircd20.cpp.

Constructor & Destructor Documentation

ProtoInspIRCd20::ProtoInspIRCd20 ( const Anope::string modname,
const Anope::string creator 
)
inline
ProtoInspIRCd20::~ProtoInspIRCd20 ( )
inline

Definition at line 872 of file inspircd20.cpp.

References ModuleManager::FindModule(), and ModuleManager::UnloadModule().

Member Function Documentation

EventReturn ProtoInspIRCd20::OnChannelModeUnset ( Channel c,
MessageSource setter,
ChannelMode mode,
const Anope::string param 
)
inlinevirtual

Called when a mode is unset on a channel

Parameters
cThe channel
setterThe user or server that is unsetting the mode
modeThe mode
paramThe mode param, if there is one
Returns
EVENT_STOP to make mlock/secureops etc checks not happen

Reimplemented from Module.

Definition at line 959 of file inspircd20.cpp.

References EVENT_CONTINUE, and Me.

void ProtoInspIRCd20::OnChannelSync ( Channel c)
inlinevirtual

Called when a channel is synced. Channels are synced after a sjoin is finished processing for a newly created channel to set the correct modes, topic, set.

Reimplemented from Module.

Definition at line 889 of file inspircd20.cpp.

References OnChanRegistered().

void ProtoInspIRCd20::OnChanRegistered ( ChannelInfo ci)
inlinevirtual

Called when a channel is registered

Parameters
ciThe channel

Reimplemented from Module.

Definition at line 895 of file inspircd20.cpp.

References Servers::Capab, Anope::string::empty(), ModeLocks::GetMLockAsString(), modes, Anope::string::replace_all_cs(), and SendChannelMetadata().

Referenced by OnChannelSync().

void ProtoInspIRCd20::OnDelChan ( ChannelInfo ci)
inlinevirtual

Called when a channel is being deleted, for any reason

Parameters
ciThe channel

Reimplemented from Module.

Definition at line 911 of file inspircd20.cpp.

References Servers::Capab, and SendChannelMetadata().

EventReturn ProtoInspIRCd20::OnMLock ( ChannelInfo ci,
ModeLock lock 
)
inlinevirtual

Called when a mode is about to be mlocked

Parameters
ciThe channel the mode is being locked on
lockThe mode lock
Returns
EVENT_CONTINUE to let other modules decide, EVENT_STOP to deny the mlock.

Reimplemented from Module.

Definition at line 920 of file inspircd20.cpp.

References EVENT_CONTINUE, ModeManager::FindChannelModeByName(), ModeLocks::GetMLockAsString(), MODE_PARAM, MODE_REGULAR, modes, Anope::string::replace_all_cs(), and SendChannelMetadata().

void ProtoInspIRCd20::OnReload ( Configuration::Conf conf)
inlinevirtual

Called when Services' configuration is being (re)loaded.

Parameters
confThe config that is being built now and will replace the global Config object
Exceptions
AConfigException to abort the config (re)loading process.

Reimplemented from Module.

Definition at line 878 of file inspircd20.cpp.

EventReturn ProtoInspIRCd20::OnSetChannelOption ( CommandSource source,
Command cmd,
ChannelInfo ci,
const Anope::string setting 
)
inlinevirtual

Called when a chanserv/set command is used

Parameters
sourceThe source of the command
cmdThe command
ciThe channel the command was used on
settingThe setting passed to the command. Probably ON/OFF.
Returns
EVENT_ALLOW to bypass access checks, EVENT_STOP to halt immediately.

Reimplemented from Module.

Definition at line 946 of file inspircd20.cpp.

References EVENT_CONTINUE, and SendChannelMetadata().

EventReturn ProtoInspIRCd20::OnUnMLock ( ChannelInfo ci,
ModeLock lock 
)
inlinevirtual

Called when a mode is about to be unlocked

Parameters
ciThe channel the mode is being unlocked from
lockThe mode lock
Returns
EVENT_CONTINUE to let other modules decide, EVENT_STOP to deny the mlock.

Reimplemented from Module.

Definition at line 933 of file inspircd20.cpp.

References EVENT_CONTINUE, ModeManager::FindChannelModeByName(), ModeLocks::GetMLockAsString(), MODE_PARAM, MODE_REGULAR, modes, Anope::string::replace_all_cs(), and SendChannelMetadata().

void ProtoInspIRCd20::OnUserNickChange ( User u,
const Anope::string oldnick 
)
inlinevirtual

Called after a user changed the nick

Parameters
uThe user.
oldnickThe old nick of the user

Reimplemented from Module.

Definition at line 884 of file inspircd20.cpp.

References ModeManager::FindUserModeByName(), Me, and User::RemoveModeInternal().

void ProtoInspIRCd20::SendChannelMetadata ( Channel c,
const Anope::string metadataname,
const Anope::string value 
)
inlineprivate

Definition at line 830 of file inspircd20.cpp.

References Me, and Channel::name.

Referenced by OnChanRegistered(), OnDelChan(), OnMLock(), OnSetChannelOption(), and OnUnMLock().

Field Documentation

InspIRCd20Proto ProtoInspIRCd20::ircd_proto
private

Definition at line 799 of file inspircd20.cpp.

Module* ProtoInspIRCd20::m_insp12
private

Definition at line 797 of file inspircd20.cpp.

Message::Away ProtoInspIRCd20::message_away
private

Definition at line 802 of file inspircd20.cpp.

IRCDMessageCapab ProtoInspIRCd20::message_capab
private

Definition at line 824 of file inspircd20.cpp.

IRCDMessageEncap ProtoInspIRCd20::message_encap
private

Definition at line 825 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_endburst
private

Definition at line 818 of file inspircd20.cpp.

Message::Error ProtoInspIRCd20::message_error
private

Definition at line 803 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_fhost
private

Definition at line 818 of file inspircd20.cpp.

IRCDMessageFIdent ProtoInspIRCd20::message_fident
private

Definition at line 826 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_fjoin
private

Definition at line 818 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_fmode
private

Definition at line 818 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_ftopic
private

Definition at line 818 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_idle
private

Definition at line 818 of file inspircd20.cpp.

Message::Invite ProtoInspIRCd20::message_invite
private

Definition at line 804 of file inspircd20.cpp.

Message::Join ProtoInspIRCd20::message_join
private

Definition at line 805 of file inspircd20.cpp.

Message::Kick ProtoInspIRCd20::message_kick
private

Definition at line 806 of file inspircd20.cpp.

Message::Kill ProtoInspIRCd20::message_kill
private

Definition at line 807 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_metadata
private

Definition at line 818 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_mode
private

Definition at line 818 of file inspircd20.cpp.

Message::MOTD ProtoInspIRCd20::message_motd
private

Definition at line 808 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_nick
private

Definition at line 818 of file inspircd20.cpp.

Message::Notice ProtoInspIRCd20::message_notice
private

Definition at line 809 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_opertype
private

Definition at line 818 of file inspircd20.cpp.

Message::Part ProtoInspIRCd20::message_part
private

Definition at line 810 of file inspircd20.cpp.

Message::Ping ProtoInspIRCd20::message_ping
private

Definition at line 811 of file inspircd20.cpp.

Message::Privmsg ProtoInspIRCd20::message_privmsg
private

Definition at line 812 of file inspircd20.cpp.

Message::Quit ProtoInspIRCd20::message_quit
private

Definition at line 813 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_rsquit
private

Definition at line 818 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_server
private

Definition at line 818 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_squit
private

Definition at line 818 of file inspircd20.cpp.

Message::Stats ProtoInspIRCd20::message_stats
private

Definition at line 814 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_time
private

Definition at line 818 of file inspircd20.cpp.

Message::Topic ProtoInspIRCd20::message_topic
private

Definition at line 815 of file inspircd20.cpp.

ServiceAlias ProtoInspIRCd20::message_uid
private

Definition at line 818 of file inspircd20.cpp.

bool ProtoInspIRCd20::use_server_side_mlock
private

Definition at line 828 of file inspircd20.cpp.

bool ProtoInspIRCd20::use_server_side_topiclock
private

Definition at line 828 of file inspircd20.cpp.


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