summaryrefslogtreecommitdiff
path: root/src/modules/mysql/db_mysql_execute.cpp
diff options
context:
space:
mode:
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)