diff options
author | Adam <Adam@anope.org> | 2013-05-05 01:55:04 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-05 01:55:04 -0400 |
commit | 1d0bb9b26b7ad58ab0bf979ac046f4511b3bf12b (patch) | |
tree | 4486f0784bdf050fd7eb225c0cb9df352ce1f45a /src/opertype.cpp | |
parent | 781defb7076ddfddf723ca08cd0a518b6657b64f (diff) |
Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in.
Diffstat (limited to 'src/opertype.cpp')
-rw-r--r-- | src/opertype.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opertype.cpp b/src/opertype.cpp index eb73c20f4..0db17464d 100644 --- a/src/opertype.cpp +++ b/src/opertype.cpp @@ -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; |