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/extra/m_sql_oper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/extra') diff --git a/modules/extra/m_sql_oper.cpp b/modules/extra/m_sql_oper.cpp index 85e5d8f7d..68a6d9084 100644 --- a/modules/extra/m_sql_oper.cpp +++ b/modules/extra/m_sql_oper.cpp @@ -49,7 +49,7 @@ class SQLOperResult : public SQL::Interface BotInfo *OperServ = Config->GetClient("OperServ"); if (opertype.empty()) { - if (user->Account() && user->Account()->o && !user->Account()->o->config && dynamic_cast(user->Account()->o)) + if (user->Account() && user->Account()->o && dynamic_cast(user->Account()->o)) { delete user->Account()->o; user->Account()->o = NULL; -- cgit