diff options
author | Adam <Adam@anope.org> | 2013-12-19 20:35:09 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-12-19 20:35:09 -0500 |
commit | ab6cd3b26caf127d1052e58e9f906d8ed5c3d986 (patch) | |
tree | 501563e7cd9b3d2c838727ce8df759ef3b08f527 /modules/commands/os_oper.cpp | |
parent | 275f2fd374a75896b356297c1d9de8b13a894d1c (diff) |
Fix a few commands not being able to find non conf opers
Diffstat (limited to 'modules/commands/os_oper.cpp')
-rw-r--r-- | modules/commands/os_oper.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp index 9bc9326fb..e4eafe2df 100644 --- a/modules/commands/os_oper.cpp +++ b/modules/commands/os_oper.cpp @@ -244,10 +244,13 @@ class OSOper : public Module { for (nickcore_map::const_iterator it = NickCoreList->begin(), it_end = NickCoreList->end(); it != it_end; ++it) { - const NickCore *nc = it->second; + NickCore *nc = it->second; - if (nc->o && !nc->o->config) + if (nc->o && dynamic_cast<MyOper *>(nc->o)) + { delete nc->o; + nc->o = NULL; + } } } }; |