summaryrefslogtreecommitdiff
path: root/src/core/bs_assign.c
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
commitc4d520b465f8aa7f5924b17b697fa760b6ead409 (patch)
tree96f6c2164077f7319bc6be855ce250e23ec9f07d /src/core/bs_assign.c
parent76cc8d0462422eed9d7af255b152c24697821309 (diff)
Move some stuff to BotInfo methods.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1232 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/bs_assign.c')
-rw-r--r--src/core/bs_assign.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c
index e34ca7d81..22c9d9c17 100644
--- a/src/core/bs_assign.c
+++ b/src/core/bs_assign.c
@@ -88,13 +88,7 @@ int do_assign(User * u)
|| (!check_access(u, ci, CA_ASSIGN) && !is_services_admin(u)))
notice_lang(s_BotServ, u, PERMISSION_DENIED);
else {
- if (ci->bi)
- unassign(u, ci);
- ci->bi = bi;
- bi->chancount++;
- if (ci->c && ci->c->usercount >= BSMinUsers) {
- bot_join(ci);
- }
+
notice_lang(s_BotServ, u, BOT_ASSIGN_ASSIGNED, bi->nick, ci->name);
send_event(EVENT_BOT_ASSIGN, 2, ci->name, bi->nick);
}