summaryrefslogtreecommitdiff
path: root/modules/database/db_old.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-01-09 15:42:31 -0500
committerAdam <Adam@anope.org>2014-01-09 15:42:31 -0500
commit9a9ca417500e3de64013583e3f6db8dd165d9a95 (patch)
treed09ff6078dabc3a3ef3a5ac6dd730bf5aacd7fcf /modules/database/db_old.cpp
parente19661e1de7f290de53b3db9111bb7ac688a8d0b (diff)
Rename db_old hash plain -> none which is what 1.8 calls it
Diffstat (limited to 'modules/database/db_old.cpp')
-rw-r--r--modules/database/db_old.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp
index 739fcaebe..cc47e2abc 100644
--- a/modules/database/db_old.cpp
+++ b/modules/database/db_old.cpp
@@ -441,7 +441,7 @@ static void LoadNicks()
char pwbuf[32];
READ(read_buffer(pwbuf, f));
- if (hashm == "plain")
+ if (hashm == "none")
my_b64_encode(pwbuf, nc->pass);
else if (hashm == "md5" || hashm == "oldmd5")
nc->pass = Hex(pwbuf, 16);
@@ -1176,7 +1176,7 @@ class DBOld : public Module
hashm = Config->GetModule(this)->Get<const Anope::string>("hash");
- if (hashm != "md5" && hashm != "oldmd5" && hashm != "sha1" && hashm != "plain" && hashm != "sha256")
+ if (hashm != "md5" && hashm != "oldmd5" && hashm != "sha1" && hashm != "none" && hashm != "sha256")
throw ModuleException("Invalid hash method");
}