From 01b0ad461a738b8cd548a5ce2363fd292042ba8e Mon Sep 17 00:00:00 2001 From: Adam- Date: Sat, 24 Apr 2010 06:51:23 +0000 Subject: 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 --- src/modules/mysql/db_mysql_execute.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/mysql/db_mysql_execute.cpp') 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) -- cgit