summaryrefslogtreecommitdiff
path: root/modules/commands/os_oper.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-19 21:34:21 -0500
committerAdam <Adam@anope.org>2013-12-19 21:34:21 -0500
commitc0cd76a0a5be7bbbcf3e891357e5a8caa7ad8038 (patch)
tree96f6d3be5a37f6c4a2374d35d3fd6714ecb974fa /modules/commands/os_oper.cpp
parentab6cd3b26caf127d1052e58e9f906d8ed5c3d986 (diff)
Don't leak opers and opertypes on /os reload, fix not updating opertypes on non conf opers on rehash
Diffstat (limited to 'modules/commands/os_oper.cpp')
-rw-r--r--modules/commands/os_oper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp
index e4eafe2df..759f48688 100644
--- a/modules/commands/os_oper.cpp
+++ b/modules/commands/os_oper.cpp
@@ -145,7 +145,7 @@ class CommandOSOper : public Command
continue;
source.Reply(_("%-8s %s"), nc->o->name.c_str(), nc->o->ot->GetName().c_str());
- if (nc->o->config)
+ if (std::find(Config->Opers.begin(), Config->Opers.end(), nc->o) != Config->Opers.end())
source.Reply(_(" This oper is configured in the configuration file."));
for (std::list<User *>::const_iterator uit = nc->users.begin(); uit != nc->users.end(); ++uit)
{