summaryrefslogtreecommitdiff
path: root/src/modules/mysql/db_mysql_execute.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-26 19:48:04 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-26 19:48:04 +0000
commit6674797c7d194ec25ed3e84a2b511876f045fbd2 (patch)
treed3cd32223814fac15ec2fb64855b1bd27a65b822 /src/modules/mysql/db_mysql_execute.cpp
parent1e2e80bf75ae7c7fd0737f64bc0248eada9e6fdc (diff)
Fixed some windows problems with db_mysql_execute
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2986 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/mysql/db_mysql_execute.cpp')
-rw-r--r--src/modules/mysql/db_mysql_execute.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mysql/db_mysql_execute.cpp b/src/modules/mysql/db_mysql_execute.cpp
index dcae53ade..4ce4e4856 100644
--- a/src/modules/mysql/db_mysql_execute.cpp
+++ b/src/modules/mysql/db_mysql_execute.cpp
@@ -42,7 +42,7 @@ class FakeUser : public User
if (this->prev)
this->prev->next = this->next;
else
- userlist[HASH(this->nick)] = this->next;
+ userlist[HASH(this->nick.c_str())] = this->next;
if (this->next)
this->next->prev = this->prev;
--usercnt;
@@ -52,7 +52,7 @@ class FakeUser : public User
{
this->server = serv_uplink; // XXX Need a good way to set this to ourself
- User **list = &userlist[HASH(this->nick)];
+ User **list = &userlist[HASH(this->nick.c_str())];
this->next = *list;
if (*list)
(*list)->prev = this;