summaryrefslogtreecommitdiff
path: root/src/opertype.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 01:55:04 -0400
committerAdam <Adam@anope.org>2013-05-05 01:55:04 -0400
commit1d0bb9b26b7ad58ab0bf979ac046f4511b3bf12b (patch)
tree4486f0784bdf050fd7eb225c0cb9df352ce1f45a /src/opertype.cpp
parent781defb7076ddfddf723ca08cd0a518b6657b64f (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.cpp4
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;