mirror of
https://github.com/anope/anope.git
synced 2026-07-03 10:53:12 +02:00
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
This commit is contained in:
+6
-2
@@ -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);
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user