mirror of
https://github.com/anope/anope.git
synced 2026-07-10 22:43:14 +02:00
Remove associated oper blocks in os_oper when accounts are deleted
This commit is contained in:
@@ -277,6 +277,15 @@ class OSOper : public Module
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OnDelCore(NickCore *nc) anope_override
|
||||
{
|
||||
if (nc->o && dynamic_cast<MyOper *>(nc->o))
|
||||
{
|
||||
delete nc->o;
|
||||
nc->o = NULL;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
MODULE_INIT(OSOper)
|
||||
|
||||
Reference in New Issue
Block a user