mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:06:37 +02:00
Don't leak opers and opertypes on /os reload, fix not updating opertypes on non conf opers on rehash
This commit is contained in:
@@ -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<SQLOper *>(user->Account()->o))
|
||||
if (user->Account() && user->Account()->o && dynamic_cast<SQLOper *>(user->Account()->o))
|
||||
{
|
||||
delete user->Account()->o;
|
||||
user->Account()->o = NULL;
|
||||
|
||||
Reference in New Issue
Block a user