summaryrefslogtreecommitdiff
path: root/src/modules/mysql/db_mysql_execute.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-24 06:51:23 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-24 06:51:23 +0000
commit01b0ad461a738b8cd548a5ce2363fd292042ba8e (patch)
tree9e8eba7f6c83151fc185706178a66344a4c7ffe6 /src/modules/mysql/db_mysql_execute.cpp
parent80c9c4903e3110e19cc9e98c14fc43784f99d844 (diff)
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
Diffstat (limited to 'src/modules/mysql/db_mysql_execute.cpp')
-rw-r--r--src/modules/mysql/db_mysql_execute.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/mysql/db_mysql_execute.cpp b/src/modules/mysql/db_mysql_execute.cpp
index 6a4cb1236..125bdfca0 100644
--- a/src/modules/mysql/db_mysql_execute.cpp
+++ b/src/modules/mysql/db_mysql_execute.cpp
@@ -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)