From 3f80e1cad02735f692a5a300ee3b200a21f330aa Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 28 Feb 2010 17:33:31 +0000 Subject: Added in support for live updating MySQL databases and the ability to execute commands to Anope through MySQL. Currently database support only applies to NickServ, ChanServ and BotServ but will be expanded soon. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2798 5417fbe8-f217-4b02-8779-1006273d7864 --- src/nickcore.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/nickcore.cpp') diff --git a/src/nickcore.cpp b/src/nickcore.cpp index fc46cd6d4..84761ed79 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -62,6 +62,9 @@ NickCore::~NickCore() /* Log .. */ Alog() << Config.s_NickServ << ": deleting nickname group " << this->display; + /* Clear access before deleting display name, we want to be able to use the display name in the clear access event */ + this->ClearAccess(); + /* Now we can safely free it. */ delete [] this->display; @@ -72,8 +75,6 @@ NickCore::~NickCore() if (this->url) delete [] this->url; - this->ClearAccess(); - if (!this->memos.memos.empty()) { for (unsigned i = 0; i < this->memos.memos.size(); ++i) @@ -119,6 +120,7 @@ bool NickCore::HasPriv(const std::string &privstr) const void NickCore::AddAccess(const std::string &entry) { access.push_back(entry); + FOREACH_MOD(I_OnNickAddAccess, OnNickAddAccess(this, entry)); } std::string NickCore::GetAccess(unsigned entry) -- cgit