1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 11:43:14 +02:00

Added oper:host and oper:vhost

This commit is contained in:
Adam
2011-08-24 15:57:05 -04:00
parent b504791bad
commit bb8e04c835
6 changed files with 50 additions and 14 deletions
+2 -2
View File
@@ -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;