summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-24 23:15:08 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-24 23:15:08 +0000
commit47504c9de5accda45a19627fd2b6ec13baa6ba95 (patch)
treed3d983aec4829d490f83a2e151e0de1e20554114 /src/tools
parent0ed0fa4af62554a7281d403b6895b29e198e8186 (diff)
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
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/db-convert.c4
1 files changed, 2 insertions, 2 deletions
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;