diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-24 22:20:14 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-24 22:20:14 +0000 |
commit | 0bfe09ba5d6f315801329f0406c20f453d436026 (patch) | |
tree | 24975d28f057f72a80ec2d9530396057d71f1977 /src | |
parent | 76534583db420502b48dc76120ab98595c1b324a (diff) |
Fixed loading negatively mlocked modes from the DB and fixed loading access creators
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2913 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/db_plain.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/db_plain.cpp b/src/core/db_plain.cpp index c4f067098..5d6680c7f 100644 --- a/src/core/db_plain.cpp +++ b/src/core/db_plain.cpp @@ -690,8 +690,6 @@ class DBPlain : public Module EventReturn OnDatabaseReadMetadata(BotInfo *bi, const std::string &key, const std::vector<std::string> ¶ms) { - std::string buf; - if (key == "FLAGS") { for (unsigned j = 0; j < params.size(); ++j) @@ -720,7 +718,6 @@ class DBPlain : public Module EventReturn OnDatabaseReadMetadata(ChannelInfo *ci, const std::string &key, const std::vector<std::string> ¶ms) { - std::string buf; int i; if (key == "FOUNDER") @@ -778,7 +775,7 @@ class DBPlain : public Module int level = atoi(params[1].c_str()); time_t last_seen = strtol(params[2].c_str(), NULL, 10); - ci->AddAccess(nc, level, buf, last_seen); + ci->AddAccess(nc, level, params[3], last_seen); } else if (key == "AKICK") { @@ -806,7 +803,7 @@ class DBPlain : public Module ak->SetFlag(AK_ISNICK); } - else if (key == "MLOCK_ON" || buf == "MLOCK_OFF") + else if (key == "MLOCK_ON" || key == "MLOCK_OFF") { bool Set = key == "MLOCK_ON" ? true : false; |