summaryrefslogtreecommitdiff
path: root/modules/commands/ns_register.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-19 20:35:09 -0500
committerAdam <Adam@anope.org>2013-12-19 20:35:09 -0500
commitab6cd3b26caf127d1052e58e9f906d8ed5c3d986 (patch)
tree501563e7cd9b3d2c838727ce8df759ef3b08f527 /modules/commands/ns_register.cpp
parent275f2fd374a75896b356297c1d9de8b13a894d1c (diff)
Fix a few commands not being able to find non conf opers
Diffstat (limited to 'modules/commands/ns_register.cpp')
-rw-r--r--modules/commands/ns_register.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index a88306fe0..b38cf750d 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -160,9 +160,9 @@ class CommandNSRegister : public Command
}
if (Config->GetModule("nickserv")->Get<bool>("restrictopernicks"))
- for (unsigned i = 0; i < Config->Opers.size(); ++i)
+ for (unsigned i = 0; i < Oper::opers.size(); ++i)
{
- Oper *o = Config->Opers[i];
+ Oper *o = Oper::opers[i];
if (!source.IsOper() && u_nick.find_ci(o->name) != Anope::string::npos)
{