summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
commit44f01ce8d5e604f5539f55d393ec9df17d14ffd7 (patch)
tree806fabbb0eb4d29aa0198f4ad6aca53a810bf435 /src/bots.cpp
parent717c684eacb691d5923fa03fa274ad5dc14033f7 (diff)
Unbreak bot assigning, also call event in the unassign function, rather than elsewherel. This will be needed for third party module devs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1235 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index 29f51f0e0..2cd4a10fd 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -60,6 +60,8 @@ void BotInfo::Assign(User *u, ChannelInfo *ci)
this->chancount++;
if (ci->c && ci->c->usercount >= BSMinUsers)
bot_join(ci);
+
+ send_event(EVENT_BOT_ASSIGN, 2, ci->name, this->nick);
}
void BotInfo::UnAssign(User *u, ChannelInfo *ci)