diff options
author | Adam <Adam@anope.org> | 2017-10-12 19:35:29 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-10-12 19:37:06 -0400 |
commit | 0c469abe4a4b69fd5de314428a82a7f400e5862e (patch) | |
tree | e34fa3b3dfa6f9fc1029fb5a1b94c8a669055168 /src/nickcore.cpp | |
parent | d63e32a579b7a19316fa209a99cba3ce79daf6ef (diff) |
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
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r-- | src/nickcore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index cede8b6e4..e35ef8010 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -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!"; |