mirror of
https://github.com/anope/anope.git
synced 2026-06-26 12:16:38 +02:00
Fixed db-convert to really convert vhosts
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2728 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -458,7 +458,7 @@ int main(int argc, char *argv[])
|
||||
HostCore *hc = findHostCore(na->nick);
|
||||
if (hc)
|
||||
{
|
||||
fs << "MD VHOST " << hc->creator << " " << hc->time << " " << hc->vHost << " :" << hc->vIdent << std::endl;
|
||||
fs << "MD VHOST " << hc->creator << " " << hc->time << " " << hc->vHost << " :" << (hc->vIdent ? hc->vIdent : "") << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -786,7 +786,7 @@ void alpha_insert_chan(ChannelInfo * ci)
|
||||
|
||||
HostCore *findHostCore(char *nick)
|
||||
{
|
||||
for (HostCore *hc = head; head; head = head->next)
|
||||
for (HostCore *hc = head; hc; hc = hc->next)
|
||||
{
|
||||
if (nick && hc->nick && !mystricmp(hc->nick, nick))
|
||||
return hc;
|
||||
|
||||
Reference in New Issue
Block a user