summaryrefslogtreecommitdiff
path: root/src/core/bs_bot.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-06 23:33:23 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-06 23:33:23 +0000
commit9ff6ed2430ed87014846b39456b31b7aba231e48 (patch)
tree0f61726fefb323c39696510ac38e5bc30d44fa2b /src/core/bs_bot.c
parent2eae73808355d8a26886bfcf42f03db02e53f1e6 (diff)
New events stuff, patch totally by Adam (aka Awesome).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2313 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/bs_bot.c')
-rw-r--r--src/core/bs_bot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index eb2aa2f8b..9999b0c27 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -130,7 +130,7 @@ class CommandBSBot : public Command
notice_lang(s_BotServ, u, BOT_BOT_ADDED, bi->nick, bi->user,
bi->host, bi->real);
- send_event(EVENT_BOT_CREATE, 1, bi->nick);
+ FOREACH_MOD(I_OnBotCreate, OnBotCreate(bi));
return MOD_CONT;
}
@@ -310,7 +310,7 @@ class CommandBSBot : public Command
notice_lang(s_BotServ, u, BOT_BOT_CHANGED,
oldnick, bi->nick, bi->user, bi->host, bi->real);
- send_event(EVENT_BOT_CHANGE, 1, bi->nick);
+ FOREACH_MOD(I_OnBotChange, OnBotChange(bi));
return MOD_CONT;
}
@@ -337,7 +337,7 @@ class CommandBSBot : public Command
return MOD_CONT;
}
- send_event(EVENT_BOT_DEL, 1, bi->nick);
+ FOREACH_MOD(I_OnBotDelete, OnBotDelete(bi));
ircdproto->SendQuit(bi, "Quit: Help! I'm being deleted by %s!", u->nick);
ircdproto->SendSQLineDel(bi->nick);