From 1d0bb9b26b7ad58ab0bf979ac046f4511b3bf12b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 5 May 2013 01:55:04 -0400 Subject: Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in. --- src/opertype.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/opertype.cpp') 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::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; -- cgit