1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 06:16:38 +02:00

Made guestnick generation really work

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2805 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-03-09 01:25:09 +00:00
parent 27364ac890
commit ce79b5023f
+2 -2
View File
@@ -720,8 +720,6 @@ void change_core_display(NickCore * nc)
void collide(NickAlias * na, int from_timeout)
{
std::string guestnick;
if (!from_timeout)
NickServCollide::ClearTimers(na);
@@ -739,10 +737,12 @@ void collide(NickAlias * na, int from_timeout)
if (!u)
return;
std::string guestnick;
/* We need to make sure the guestnick is free -- heinz */
do
{
char randbuf[17];
snprintf(randbuf, sizeof(randbuf), "%d", getrandom16());
guestnick = Config.NSGuestNickPrefix;
guestnick += randbuf;
}