summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-05-06 14:42:21 -0400
committerAdam <Adam@anope.org>2010-06-18 20:58:55 -0400
commita93be9ff1c417d73015fd53a9ee778ea2a642328 (patch)
treea87c2cd3c4577ad0b9d7d9b4d70505a8648e851e /include/modules.h
parent5d437d9ab5988c36def1a78c7d3d3077eb6804e3 (diff)
Added two events called in ns_info and cs_info that allows modules to easially add info output. Made os_info use this
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index afc6806d1..6e7de5188 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -868,6 +868,13 @@ class CoreExport Module
*/
virtual void OnAkickDel(ChannelInfo *ci, AutoKick *ak) { }
+ /** Called when a user requests info for a channel
+ * @param u The user requesting info
+ * @param ci The channel the user is requesting info for
+ * @param ShowHidden true if we should show the user everything
+ */
+ virtual void OnChanInfo(User *u, ChannelInfo *ci, bool ShowHidden) { }
+
/** Called when a nick is dropped
* @param nick The nick
*/
@@ -946,13 +953,20 @@ class CoreExport Module
*/
virtual void OnNickAddAccess(NickCore *nc, const std::string &entry) { }
- /** called from NickCore::EraseAccess()
+ /** Called from NickCore::EraseAccess()
* @param nc pointer to the NickCore
* @param entry The access mask
*/
virtual void OnNickEraseAccess(NickCore *nc, const std::string &entry) { }
- /** called when a vhost is deleted
+ /** Called when a user requests info for a nick
+ * @param u The user requesting info
+ * @param na The nick the user is requesting info from
+ * @param ShowHidden true if we should show the user everything
+ */
+ virtual void OnNickInfo(User *u, NickAlias *na, bool ShowHidden) { }
+
+ /** Called when a vhost is deleted
* @param na The nickalias of the vhost
*/
virtual void OnDeleteVhost(NickAlias *na) { }
@@ -1077,11 +1091,13 @@ enum Implementation
I_OnNickRegister, I_OnNickSuspended, I_OnNickUnsuspended,
I_OnDelNick, I_OnDelCore, I_OnChangeCoreDisplay,
I_OnDelNickRequest, I_OnMakeNickRequest, I_OnNickClearAccess, I_OnNickAddAccess, I_OnNickEraseAccess,
+ I_OnNickInfo,
/* ChanServ */
I_OnChanServHelp, I_OnChanForbidden, I_OnChanSuspend, I_OnChanDrop, I_OnPreChanExpire, I_OnChanExpire, I_OnAccessAdd, I_OnAccessChange,
I_OnAccessDel, I_OnAccessClear, I_OnLevelChange, I_OnChanRegistered, I_OnChanUnsuspend, I_OnDelChan, I_OnChannelCreate,
I_OnChannelDelete, I_OnAkickAdd, I_OnAkickDel,
+ I_OnChanInfo,
/* BotServ */
I_OnBotServHelp, I_OnBotJoin, I_OnBotKick, I_OnBotCreate, I_OnBotChange, I_OnBotDelete, I_OnBotAssign, I_OnBotUnAssign,