From ed568f4750f41b367e2d74406cb76f67edb83bbf Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 3 Jan 2010 04:36:36 +0000 Subject: [PATCH] Fixed db-convert to really convert vhosts git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2728 5417fbe8-f217-4b02-8779-1006273d7864 --- src/tools/db-convert.c | 2 +- src/tools/db-convert.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c index c70f41ecd..4a82d0f82 100644 --- a/src/tools/db-convert.c +++ b/src/tools/db-convert.c @@ -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; } } } diff --git a/src/tools/db-convert.h b/src/tools/db-convert.h index 1ebeec9f4..914202d3a 100644 --- a/src/tools/db-convert.h +++ b/src/tools/db-convert.h @@ -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;