1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 07:33:13 +02:00

Call OnDelChan prior to unsetting extensibles

cs_set uses this to set -P on permanent channels if they are persistent.

Also move similar event in nickcore/nickalias destruction
This commit is contained in:
Adam
2017-10-12 19:35:29 -04:00
parent d63e32a579
commit 0c469abe4a
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -37,10 +37,10 @@ NickCore::NickCore(const Anope::string &coredisplay) : Serializable("NickCore"),
NickCore::~NickCore()
{
UnsetExtensibles();
FOREACH_MOD(OnDelCore, (this));
UnsetExtensibles();
if (!this->chanaccess->empty())
Log(LOG_DEBUG) << "Non-empty chanaccess list in destructor!";