summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/account.h6
-rw-r--r--include/modules.h51
2 files changed, 52 insertions, 5 deletions
diff --git a/include/account.h b/include/account.h
index f8fd71b3c..09db33955 100644
--- a/include/account.h
+++ b/include/account.h
@@ -24,7 +24,7 @@ class NickRequest
class NickCore;
-class CoreExport NickAlias
+class CoreExport NickAlias : public Extensible
{
public:
NickAlias();
@@ -48,14 +48,14 @@ class CoreExport NickCore : public Extensible
NickCore *next, *prev;
char *display; /* How the nick is displayed */
- char pass[PASSMAX]; /* Password of the nicks */
+ char pass[PASSMAX]; /* Password of the nicks */
char *email; /* E-mail associated to the nick */
char *greet; /* Greet associated to the nick */
uint32 icq; /* ICQ # associated to the nick */
char *url; /* URL associated to the nick */
uint32 flags; /* See NI_* below */
uint16 language; /* Language selected by nickname owner (LANG_*) */
- std::vector<std::string> access; /* Access list, vector of strings */
+ std::vector<std::string> access; /* Access list, vector of strings */
MemoInfo memos;
uint16 channelcount; /* Number of channels currently registered */
diff --git a/include/modules.h b/include/modules.h
index 79436e063..15a49c607 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -676,7 +676,7 @@ class CoreExport Module
/** Called when a user disconnects
* @param nick The name of the user
*/
- virtual void OnUserLogoff(const char *nick) { }
+ virtual void OnUserLogoff(User *u) { }
/** Called when a new bot is made
* @param bi The bot
@@ -792,6 +792,52 @@ class CoreExport Module
* @param level The level
*/
virtual void OnDefconLevel(int level) { }
+
+ /** Called on findnick()
+ * @param nick nickname to be searched for
+ */
+ virtual void OnFindNick(const std::string &nick) { }
+
+ /** Called on delnick()
+ * @ param na pointer to the nickalias
+ */
+ virtual void OnDelNick(NickAlias *na) { }
+
+ /* Called on findcore()
+ * @param nick nickname to be searched for (nc->display)
+ */
+ virtual void OnFindCore(const std::string &nick) { }
+
+ /** Called on delcore()
+ * @param nc pointer to the NickCore
+ */
+ virtual void OnDelCore(NickCore *nc) { }
+
+ /** Called on change_core_display()
+ * @param nc pointer to the NickCore
+ * @param newdisplay the new display
+ */
+ virtual void OnChangeCoreDisplay(NickCore *nc, const std::string &newdisplay) { }
+
+ /** Called on findrequestnick()
+ * @param nick nicname to be searched for
+ */
+ virtual void OnFindRequestNick(const std::string &nick) { }
+
+ /** called from ns_register.c, after the NickRequest have been created
+ * @param nr pointer to the NickRequest
+ */
+ virtual void OnMakeNickRequest(NickRequest *nr) { }
+
+ /** called on delnickrequest()
+ * @param nr pointer to the NickRequest
+ */
+ virtual void OnDelNickRequest(NickRequest *nr) { }
+
+ /** called from NickCore::ClearAccess()
+ * @param nc pointer to the NickCore
+ */
+ virtual void OnNickClearAccess(NickCore *nc) { }
};
@@ -803,13 +849,14 @@ enum Implementation
/* NickServ */
I_OnNickExpire, I_OnNickForbidden, I_OnNickGroup, I_OnNickLogout, I_OnNickIdentify, I_OnNickDrop,
I_OnNickRegister, I_OnNickSuspended, I_OnNickUnsuspended,
+ I_OnFindNick, I_OnDelNick, I_OnFindCore, I_OnDelCore, I_OnChangeCoreDisplay,
+ I_OnFindRequestNick, I_OnDelNickRequest, I_OnMakeNickRequest, I_OnNickClearAccess,
/* ChanServ */
I_OnChanForbidden, I_OnChanSuspend, I_OnChanDrop, I_OnChanExpire, I_OnAccessAdd, I_OnAccessChange,
I_OnAccessDel, I_OnAccessClear, I_OnChanRegistered, I_OnChanUnsuspend,
/* BotServ */
-
I_OnBotJoin, I_OnBotKick, I_OnBotCreate, I_OnBotChange, I_OnBotDelete, I_OnBotAssign, I_OnBotUnAssign,
I_OnUserKicked, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan,