1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 20:26:39 +02:00

Rewrote some of the opertype system, added os_login

This commit is contained in:
Adam
2011-03-14 13:52:26 -04:00
parent 4fe49af840
commit ed73d76751
65 changed files with 393 additions and 201 deletions
+27
View File
@@ -7,6 +7,33 @@
#include "services.h"
Oper *Oper::Find(const Anope::string &name)
{
for (unsigned i = 0; i < Config->Opers.size(); ++i)
{
Oper *o = Config->Opers[i];
if (o->name.equals_ci(name))
return o;
}
return NULL;
}
OperType *OperType::Find(const Anope::string &name)
{
for (std::list<OperType *>::iterator it = Config->MyOperTypes.begin(), it_end = Config->MyOperTypes.end(); it != it_end; ++it)
{
OperType *ot = *it;
if (ot->GetName() == name)
return ot;
}
return NULL;
}
OperType::OperType(const Anope::string &nname) : name(nname)
{
}