diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-21 19:39:06 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-21 19:39:06 +0000 |
commit | 1532aa675f7c28b8ff0061ebc21f374d36d89d65 (patch) | |
tree | 9dddab402074fcc261ae478651fe5d87e6a8e807 | |
parent | 9aadd803ebb5c3c742af709abd4273c99739148f (diff) |
Fix bug leading to only one core being correctly converted
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1782 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/tools/db-convert.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c index dde91c96a..7b88f3a2a 100644 --- a/src/tools/db-convert.c +++ b/src/tools/db-convert.c @@ -559,9 +559,9 @@ int main(int argc, char *argv[]) fs << "MD NC " << nc->display << " channelfoundercount " << nc->channelcount << std::endl; /* we could do this in a seperate loop, I'm doing it here for tidiness. */ - for (i = 0; i < 1024; i++) + for (int f = 0; f < 1024; f++) { - for (na = nalists[i]; na; na = na->next) + for (na = nalists[f]; na; na = na->next) { if (!na->nc) { @@ -576,6 +576,7 @@ int main(int argc, char *argv[]) fs << "NA " << na->nc->display << " " << na->nick << " " << na->time_registered << " " << na->last_seen << std::endl; + /* SAFE(write_int8(1, f)); SAFE(write_string(na->nick, f)); SAFE(write_string(na->last_usermask, f)); // core @@ -586,12 +587,12 @@ int main(int argc, char *argv[]) SAFE(write_int16(na->status, f)); // needed? SAFE(write_string(na->nc->display, f)); */ + } } } } - - + /* Section II: Chans */ /* IIa: First database if ((f = open_db_read("ChanServ", "chan.db", 16))) |