summaryrefslogtreecommitdiff
path: root/src/nickcore.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-10-12 19:35:29 -0400
committerAdam <Adam@anope.org>2017-10-12 19:37:06 -0400
commit0c469abe4a4b69fd5de314428a82a7f400e5862e (patch)
treee34fa3b3dfa6f9fc1029fb5a1b94c8a669055168 /src/nickcore.cpp
parentd63e32a579b7a19316fa209a99cba3ce79daf6ef (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.cpp4
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!";