1
0
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:
Adam
2013-05-05 01:55:04 -04:00
parent 781defb707
commit 1d0bb9b26b
165 changed files with 3093 additions and 4861 deletions
+2 -2
View File
@@ -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;