From fbb1ab92468cce3b4414a1232c4efc77d34e27c8 Mon Sep 17 00:00:00 2001 From: sjaz Date: Mon, 6 Apr 2009 16:40:07 +0000 Subject: [PATCH] Patch to make changing bots not send multiple QUIT commands (Thanks Adam). git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2265 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_bot.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 750760e85..36aa70b73 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -300,9 +300,10 @@ class CommandBSBot : public Command if (user) { - ircdproto->SendQuit(bi, "Quit: Be right back"); - // This isn't the nicest way to do this, unfortunately. - bi->uid = ts6_uid_retrieve(); + if (ircd->ts6) { + // This isn't the nicest way to do this, unfortunately. + bi->uid = ts6_uid_retrieve(); + } ircdproto->SendClientIntroduction(bi->nick, bi->user, bi->host, bi->real, ircd->pseudoclient_mode, bi->uid.c_str()); bi->RejoinAll();