summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/bs_bot.c8
-rw-r--r--version.log3
2 files changed, 8 insertions, 3 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);
diff --git a/version.log b/version.log
index 8b582a26f..5626d8820 100644
--- a/version.log
+++ b/version.log
@@ -9,9 +9,10 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="2"
VERSION_EXTRA="-svn"
-VERSION_BUILD="2544"
+VERSION_BUILD="2545"
# $Log$ # Changes since 1.8.2 Release
+#Revision 2545 - 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
#Revision 2544 - Fixed the NICK command syntax on InspIRCd 1.2 to work when changing clients nicknames
#Revision 2543 - Fixed crash when juping servers on InspIRCd 1.2
#Revision 2542 - Fixed remote whoises on services clients on InspIRCd 1.2