From a3a787412be30089c8f02a52237f933dab383e87 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Thu, 25 May 2006 14:29:30 +0000 Subject: BUILD : 1.7.14 (1039) BUGS : 493 NOTES : Fixed /bs BOT CHANGE not setting new Q:Line when only nick was changed git-svn-id: svn://svn.anope.org/anope/trunk@1039 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@763 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_bot.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 7ada659c6..f406d4df1 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -299,10 +299,12 @@ int do_bot(User * u) } /* If only the nick changes, we just make the bot change his nick, - else we must make it quit and rejoin. */ - if (!user) + else we must make it quit and rejoin. We must not forget to set + the Q:Line either (it's otherwise set in anope_cmd_bot_nick) */ + if (!user) { anope_cmd_chg_nick(oldnick, bi->nick); - else { + 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, -- cgit