diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-09 22:34:17 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-09 22:34:17 +0000 |
commit | d0646a37dc15f97b6cebf0764263457faa944ea4 (patch) | |
tree | 1a670f6125ccae2cc212440d12b1a7a80e1831be /src | |
parent | b80e0cb996bfcec7b120b640894798ed8ab63cf0 (diff) |
Now send the QUIT command before changing bots internally for /botserv bot change, so InspIRCd 1.2 (and possibly others) can get the UID and other info from the bot
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2545 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/bs_bot.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 3042d32c8..911932574 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -276,6 +276,12 @@ int do_bot(User * u) EnforceQlinedNick(nick, s_BotServ); } + /* Send the QUIT before changing the bot internally, so proto mods (InspIRCD 1.2) + * can get the uid if needed (or other things )and send that - Adam + */ + if (user) + anope_cmd_quit(bi->nick, "Quit: Be right back"); + if (strcmp(nick, bi->nick)) change_bot_nick(bi, nick); @@ -299,8 +305,6 @@ int do_bot(User * u) anope_cmd_chg_nick(oldnick, bi->nick); anope_cmd_sqline(bi->nick, "Reserved for services"); } else { - anope_cmd_quit(oldnick, "Quit: Be right back"); - anope_cmd_bot_nick(bi->nick, bi->user, bi->host, bi->real, ircd->botserv_bot_mode); bot_rejoin_all(bi); |