summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bots.cpp2
-rw-r--r--src/core/bs_assign.c3
2 files changed, 3 insertions, 2 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)
diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c
index 22c9d9c17..fe07bace1 100644
--- a/src/core/bs_assign.c
+++ b/src/core/bs_assign.c
@@ -88,9 +88,8 @@ int do_assign(User * u)
|| (!check_access(u, ci, CA_ASSIGN) && !is_services_admin(u)))
notice_lang(s_BotServ, u, PERMISSION_DENIED);
else {
-
+ bi->Assign(u, ci);
notice_lang(s_BotServ, u, BOT_ASSIGN_ASSIGNED, bi->nick, ci->name);
- send_event(EVENT_BOT_ASSIGN, 2, ci->name, bi->nick);
}
return MOD_CONT;
}