From c0cd76a0a5be7bbbcf3e891357e5a8caa7ad8038 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 19 Dec 2013 21:34:21 -0500 Subject: Don't leak opers and opertypes on /os reload, fix not updating opertypes on non conf opers on rehash --- modules/commands/os_oper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands') 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::const_iterator uit = nc->users.begin(); uit != nc->users.end(); ++uit) { -- cgit