diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-28 17:33:31 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-28 17:33:31 +0000 |
commit | 3f80e1cad02735f692a5a300ee3b200a21f330aa (patch) | |
tree | d7bcd3c5d1cfd54c725f4c9a0eb7984632b6be67 /src/nickcore.cpp | |
parent | 393b5ab26e952f427f40a8ed6d10acfdf6ead96c (diff) |
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
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r-- | src/nickcore.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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) |