diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-27 23:03:21 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-27 23:03:21 +0000 |
commit | 7a92feb474523be59dac47517ed2c55dc7ee313d (patch) | |
tree | b9650680b4454e68587ac929f96a36022113e446 /src/core/bs_bot.c | |
parent | 601c546957a94cbe8344f97e22f3446899463c85 (diff) |
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
Diffstat (limited to 'src/core/bs_bot.c')
-rw-r--r-- | src/core/bs_bot.c | 6 |
1 files changed, 5 insertions, 1 deletions
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(); } |