summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-21 11:02:30 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-21 11:02:30 +0000
commit69ffec087f7b824b71343422628d562690303f7c (patch)
tree6264e094dcec5a62c37e9eaeece125c1b5566530
parent5a64d74e70d79b250295dcd963a7b7898931f2d7 (diff)
Save memos and access in new db.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1773 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/tools/db-convert.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c
index 2e3233623..2c8493bf1 100644
--- a/src/tools/db-convert.c
+++ b/src/tools/db-convert.c
@@ -537,6 +537,24 @@ int main(int argc, char *argv[])
fs << "MD NC " << nc->display << " icq :" << nc->icq << std::endl;
if (nc->url)
fs << "MD NC " << nc->display << " url :" << nc->url << std::endl;
+
+ if (nc->accesscount)
+ {
+ fs << "MD NC " << nc->display << " obsolete_accesscount :" << nc->accesscount << std::endl;
+ for (j = 0, access = nc->access; j < nc->accesscount; j++, access++)
+ fs << "MD NC " << nc->display << " ns_access " << *access << std::endl;
+ }
+
+ if (nc->memos.memocount)
+ {
+ memos = nc->memos.memos;
+ fs << "MD NC " << nc->display << " obsolete_memocount :" << nc->memos.memocount << std::endl;
+ for (j = 0; j < nc->memos.memocount; j++, memos++)
+ fs << "ME " << nc->display << " " << memos->number << " " << memos->flags << " " << memos->time << " " << memos->sender << " :" << memos->text << std::endl;
+ }
+
+
+ // Ignore memomax, it should be removed XXX
/*
SAFE(write_int8(1, f));
SAFE(write_string(nc->display, f)); // xx