diff options
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; + } } } }; |