summaryrefslogtreecommitdiff
path: root/modules/extra/m_sql_oper.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-01-23 20:45:10 -0500
committerAdam <Adam@anope.org>2016-01-23 20:45:10 -0500
commit41802c28c68d3b7e4f68849b61f9f863fc559c30 (patch)
tree91387ca8219a38cf77a2a030c20717ed8fd1779a /modules/extra/m_sql_oper.cpp
parent97a13081e9483f2070abdb7fad8ec486a46139ac (diff)
Fix m_sql_oper to compile from the cleanup of the other day
Diffstat (limited to 'modules/extra/m_sql_oper.cpp')
-rw-r--r--modules/extra/m_sql_oper.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/extra/m_sql_oper.cpp b/modules/extra/m_sql_oper.cpp
index 060893e19..42c8be7e1 100644
--- a/modules/extra/m_sql_oper.cpp
+++ b/modules/extra/m_sql_oper.cpp
@@ -25,6 +25,8 @@ class SQLOperResult : public SQL::Interface
user->Account()->o = NULL;
Log(this->owner) << "m_sql_oper: Removed services operator from " << user->nick << " (" << user->Account()->display << ")";
+
+ BotInfo *OperServ = Config->GetClient("OperServ");
user->RemoveMode(OperServ, "OPER"); // Probably not set, just incase
}
}
@@ -53,7 +55,7 @@ class SQLOperResult : public SQL::Interface
}
catch (const SQL::Exception &)
{
- Log(this) << "Expected column named \"opertype\" but one was not found";
+ Log(this->owner) << "Expected column named \"opertype\" but one was not found";
return;
}
@@ -85,7 +87,7 @@ class SQLOperResult : public SQL::Interface
if (user->Account()->o && !dynamic_cast<SQLOper *>(user->Account()->o))
{
- Log(this) << "Oper " << user->Account()->display << " has type " << opertype << ", but is already configured as an oper of type " << user->Account()->o->ot->GetName();
+ Log(this->owner) << "Oper " << user->Account()->display << " has type " << opertype << ", but is already configured as an oper of type " << user->Account()->o->ot->GetName();
return;
}