diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-03 04:36:36 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-03 04:36:36 +0000 |
commit | ed568f4750f41b367e2d74406cb76f67edb83bbf (patch) | |
tree | 52737a2ed7c05e1893c2b4a9fd98da8300617f2f | |
parent | de824a599ab162324e4e24c88945ba874dbf1ed9 (diff) |
Fixed db-convert to really convert vhosts
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2728 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/tools/db-convert.c | 2 | ||||
-rw-r--r-- | 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; |