mirror of
https://github.com/anope/anope.git
synced 2026-07-03 05:13:14 +02:00
Fixed crash when shutting down when db_mysql_execute is loaded and logusers is enabled
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2908 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -37,6 +37,7 @@ class FakeUser : public User
|
||||
this->realname = sstrdup("Fake SQL User");
|
||||
this->hostip = sstrdup("255.255.255.255");
|
||||
this->vhost = NULL;
|
||||
this->server = serv_uplink; // XXX Need a good way to set this to ourself
|
||||
|
||||
if (this->prev)
|
||||
this->prev->next = this->next;
|
||||
@@ -49,6 +50,8 @@ class FakeUser : public User
|
||||
|
||||
~FakeUser()
|
||||
{
|
||||
this->server = serv_uplink; // XXX Need a good way to set this to ourself
|
||||
|
||||
User **list = &userlist[HASH(this->nick)];
|
||||
this->next = *list;
|
||||
if (*list)
|
||||
|
||||
Reference in New Issue
Block a user