summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-24 15:57:05 -0400
committerAdam <Adam@anope.org>2011-09-10 01:58:35 -0400
commitbb8e04c83588b6d0595eca463170643a3bd84285 (patch)
tree31f3949cdb3f1f7236f0e02e56027ee35932f0d7 /modules
parentb504791bad450dfc9d28faa8b2009f8eaef0f485 (diff)
Added oper:host and oper:vhost
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/os_oper.cpp4
-rw-r--r--modules/extra/m_ldap_oper.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp
index 57b2dbde8..0ef032f15 100644
--- a/modules/commands/os_oper.cpp
+++ b/modules/commands/os_oper.cpp
@@ -47,7 +47,7 @@ class CommandOSOper : public Command
else
{
delete na->nc->o;
- na->nc->o = new Oper(na->nc->display, "", "", ot);
+ na->nc->o = new Oper(na->nc->display, ot);
Log(LOG_ADMIN, source.u, this) << "ADD " << na->nick << " as type " << ot->GetName();
source.Reply("%s (%s) added to the \2%s\2 list.", na->nick.c_str(), na->nc->display.c_str(), ot->GetName().c_str());
@@ -209,7 +209,7 @@ class OSOper : public Module
OperType *ot = OperType::Find(params[2]);
if (ot == NULL)
return EVENT_CONTINUE;
- nc->o = new Oper(nc->display, "", "", ot);
+ nc->o = new Oper(nc->display, ot);
Log(LOG_NORMAL, "operserv/oper") << "Tied oper " << nc->display << " to type " << ot->GetName();
}
return EVENT_CONTINUE;
diff --git a/modules/extra/m_ldap_oper.cpp b/modules/extra/m_ldap_oper.cpp
index f75d372c7..7ea68dc67 100644
--- a/modules/extra/m_ldap_oper.cpp
+++ b/modules/extra/m_ldap_oper.cpp
@@ -46,7 +46,7 @@ class IdentifyInterface : public LDAPInterface
my_opers.erase(o);
delete o;
}
- o = new Oper(u->nick, "", "", ot);
+ o = new Oper(u->nick, ot);
my_opers.insert(o);
u->Account()->o = o;
Log() << "m_ldap_oper: Tied " << u->nick << " (" << u->Account()->display << ") to opertype " << ot->GetName();