1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 21:43:13 +02:00

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
This commit is contained in:
Adam-
2010-04-24 22:20:14 +00:00
parent 76534583db
commit 0bfe09ba5d
+2 -5
View File
@@ -690,8 +690,6 @@ class DBPlain : public Module
EventReturn OnDatabaseReadMetadata(BotInfo *bi, const std::string &key, const std::vector<std::string> &params)
{
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> &params)
{
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;