1
0
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:
Adam
2013-12-19 21:34:21 -05:00
parent ab6cd3b26c
commit c0cd76a0a5
6 changed files with 42 additions and 13 deletions
+1 -1
View File
@@ -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;