From 47504c9de5accda45a19627fd2b6ec13baa6ba95 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 24 Jan 2010 23:15:08 +0000 Subject: Fixed db-convert and enc_old to work when converting databases using enc_old git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2776 5417fbe8-f217-4b02-8779-1006273d7864 --- src/tools/db-convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools') diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c index ebca084fd..9494b1b37 100644 --- a/src/tools/db-convert.c +++ b/src/tools/db-convert.c @@ -376,14 +376,14 @@ int main(int argc, char *argv[]) len = 16; else if (hashm == "sha1") len = 20; - else if (hashm == "old") + else if (hashm == "oldmd5") len = 16; else len = 32; b64_encode(nc->pass, len, (char *)cpass, 5000); - fs << "NC " << nc->display << " " << hashm << ":" << cpass << " "; + fs << "NC " << nc->display << " " << hashm << ":" << cpass; fs << " " << GetLanguageID(nc->language) << " " << nc->memos.memomax << " " << nc->channelcount << std::endl; std::cout << "Wrote account for " << nc->display << " passlen " << strlen(cpass) << std::endl; -- cgit