From 2f93b4225f3b0f908170c6591cc083ee3d297348 Mon Sep 17 00:00:00 2001 From: Adam- Date: Mon, 7 Sep 2009 17:03:55 +0000 Subject: Added the OnBotPreLoad event to fix introducing StatServ git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2494 5417fbe8-f217-4b02-8779-1006273d7864 --- include/modules.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 101fa6902..12a061c9e 100644 --- a/include/modules.h +++ b/include/modules.h @@ -578,6 +578,12 @@ class CoreExport Module */ virtual void OnBotBan(User *u, ChannelInfo *ci, const char *mask) { } + /** Called after a bot has been created, but NOT added to the internal + * list and NOT introduced + * @param bi The bot + */ + virtual void OnBotPreLoad(BotInfo *bi) { } + /** Called when a bot kicks a user * @param u The user being kicked * @param ci The channel @@ -890,7 +896,7 @@ enum Implementation /* BotServ */ I_OnBotJoin, I_OnBotKick, I_OnBotCreate, I_OnBotChange, I_OnBotDelete, I_OnBotAssign, I_OnBotUnAssign, - I_OnUserKicked, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan, + I_OnUserKicked, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan, I_OnBotPreLoad, /* HostServ */ I_OnDeleteHostCore, I_OnFindHostCore, I_OnInsertHostCore, -- cgit