summaryrefslogtreecommitdiff
path: root/modules/extra/m_sql_oper.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-27 08:12:04 -0400
committerAdam <Adam@anope.org>2012-10-27 08:12:04 -0400
commitd6e1b92059688c8b59df0eedccfb16781d193591 (patch)
treee61ace0908bae241ea4cac18331a99b441981dad /modules/extra/m_sql_oper.cpp
parentbb5f4555dce8bdfa7124db87c72a084c9d9416a1 (diff)
Add a module log type
Diffstat (limited to 'modules/extra/m_sql_oper.cpp')
-rw-r--r--modules/extra/m_sql_oper.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/extra/m_sql_oper.cpp b/modules/extra/m_sql_oper.cpp
index b834e26ca..22218a646 100644
--- a/modules/extra/m_sql_oper.cpp
+++ b/modules/extra/m_sql_oper.cpp
@@ -50,7 +50,7 @@ class SQLOperResult : public SQLInterface
Config->Opers.erase(it);
delete user->Account()->o;
user->Account()->o = NULL;
- Log() << "m_sql_oper: Removed services operator from " << user->nick << " (" << user->Account()->display << ")";
+ Log(this->owner) << "m_sql_oper: Removed services operator from " << user->nick << " (" << user->Account()->display << ")";
user->RemoveMode(findbot(Config->OperServ), UMODE_OPER); // Probably not set, just incase
}
return;
@@ -59,13 +59,13 @@ class SQLOperResult : public SQLInterface
OperType *ot = OperType::Find(opertype);
if (ot == NULL)
{
- Log() << "m_sql_oper: Oper " << user->nick << " has type " << opertype << ", but this opertype does not exist?";
+ Log(this->owner) << "m_sql_oper: Oper " << user->nick << " has type " << opertype << ", but this opertype does not exist?";
return;
}
if (!user->Account()->o || user->Account()->o->ot != ot)
{
- Log() << "m_sql_oper: Tieing oper " << user->nick << " to type " << opertype;
+ Log(this->owner) << "m_sql_oper: Tieing oper " << user->nick << " to type " << opertype;
user->Account()->o = new Oper(user->Account()->display, ot);
Config->Opers.push_back(user->Account()->o);
}
@@ -82,7 +82,7 @@ class SQLOperResult : public SQLInterface
void OnError(const SQLResult &r) anope_override
{
SQLOperResultDeleter d(this);
- Log() << "m_sql_oper: Error executing query " << r.GetQuery().query << ": " << r.GetError();
+ Log(this->owner) << "m_sql_oper: Error executing query " << r.GetQuery().query << ": " << r.GetError();
}
};
@@ -118,7 +118,7 @@ class ModuleSQLOper : public Module
{
if (!this->SQL)
{
- Log() << "m_sql_oper: Unable to find SQL engine";
+ Log() << "Unable to find SQL engine";
return;
}