1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 04:46:37 +02:00

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
This commit is contained in:
rburchell
2009-03-27 23:03:21 +00:00
parent 601c546957
commit 7a92feb474
+5 -1
View File
@@ -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();
}