From 7a92feb474523be59dac47517ed2c55dc7ee313d Mon Sep 17 00:00:00 2001 From: rburchell Date: Fri, 27 Mar 2009 23:03:21 +0000 Subject: [PATCH] Regenerate UID on BOT CHANGE, don't try reuse an existing one. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2212 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_bot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 2c72246d0..750760e85 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -300,7 +300,11 @@ class CommandBSBot : public Command if (user) { - ircdproto->SendClientIntroduction(bi->nick, bi->user, bi->host, bi->real, ircd->pseudoclient_mode, bi->uid.c_str()); + ircdproto->SendQuit(bi, "Quit: Be right back"); + // 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(); }