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/core/enc_old.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/enc_old.c b/src/core/enc_old.c index c5324a55b..a04ec75e9 100644 --- a/src/core/enc_old.c +++ b/src/core/enc_old.c @@ -348,7 +348,7 @@ class EOld : public Module char digest[33], digest2[33]; char cpass[1000]; int i; - std::string buf = "old:"; + std::string buf = "oldmd5:"; memset(&context, 0, sizeof(context)); memset(&digest, 0, sizeof(digest)); @@ -374,14 +374,14 @@ class EOld : public Module EventReturn OnDecrypt(const std::string &hashm, const std::string &src, std::string &dest ) { - if (hashm != "old") + if (hashm != "oldmd5") return EVENT_CONTINUE; return EVENT_STOP; } EventReturn OnCheckPassword(const std::string &hashm, std::string &plaintext, std::string &password) { - if (hashm != "old") + if (hashm != "oldmd5") return EVENT_CONTINUE; std::string buf; this->OnEncrypt(plaintext, buf); -- cgit