diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-24 23:15:08 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-24 23:15:08 +0000 |
| commit | 47504c9de5accda45a19627fd2b6ec13baa6ba95 (patch) | |
| tree | d3d983aec4829d490f83a2e151e0de1e20554114 /src/core | |
| parent | 0ed0fa4af62554a7281d403b6895b29e198e8186 (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/core')
| -rw-r--r-- | src/core/enc_old.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
