summaryrefslogtreecommitdiff
path: root/modules/database/db_old.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/database/db_old.cpp')
-rw-r--r--modules/database/db_old.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp
index 03c80e6bd..64faafe10 100644
--- a/modules/database/db_old.cpp
+++ b/modules/database/db_old.cpp
@@ -11,7 +11,7 @@
/*************************************************************************/
#include "module.h"
-#include "../commands/os_session.h"
+#include "modules/os_session.h"
#define READ(x) \
if (true) \
@@ -222,7 +222,7 @@ static Anope::string GetLevelName(int level)
case 6:
return "AUTOVOICE";
case 7:
- return "OPDEOP";
+ return "OP";
case 8:
return "LIST";
case 9:
@@ -256,7 +256,7 @@ static Anope::string GetLevelName(int level)
case 23:
return "AUTOPROTECT";
case 24:
- return "OPDEOPME";
+ return "OPME";
case 25:
return "HALFOPME";
case 26:
@@ -1092,15 +1092,13 @@ static void LoadExceptions()
class DBOld : public Module
{
public:
- DBOld(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, DATABASE)
+ DBOld(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, DATABASE | VENDOR)
{
- this->SetAuthor("Anope");
Implementation i[] = { I_OnLoadDatabase, I_OnUplinkSync };
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
- ConfigReader conf;
- hashm = conf.ReadValue("db_old", "hash", "", 0);
+ hashm = Config->GetModule(this)->Get<const Anope::string>("hash");
if (hashm != "md5" && hashm != "oldmd5" && hashm != "sha1" && hashm != "plain" && hashm != "sha256")
throw ModuleException("Invalid hash method");