mirror of
https://github.com/anope/anope.git
synced 2026-07-01 01:26:39 +02:00
Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in.
This commit is contained in:
+2
-2
@@ -27,9 +27,9 @@ Oper *Oper::Find(const Anope::string &name)
|
||||
|
||||
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)
|
||||
for (unsigned i = 0; i < Config->MyOperTypes.size(); ++i)
|
||||
{
|
||||
OperType *ot = *it;
|
||||
OperType *ot = Config->MyOperTypes[i];
|
||||
|
||||
if (ot->GetName() == name)
|
||||
return ot;
|
||||
|
||||
Reference in New Issue
Block a user