mirror of
https://github.com/anope/anope.git
synced 2026-07-07 07:13:12 +02:00
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
This commit is contained in:
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user