1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 03:56:38 +02:00

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
This commit is contained in:
Adam-
2010-05-26 19:48:04 +00:00
parent 1e2e80bf75
commit 6674797c7d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -53,6 +53,7 @@ class CommandOSUserList : public Command
notice_lang(Config.s_OperServ, u, OPER_USERLIST_RECORD, uc->user->nick.c_str(), uc->user->GetIdent().c_str(), uc->user->GetDisplayedHost().c_str());
}
u->SendMessage(Config.s_OperServ, "total %d", c->users.size());
}
else
{
+2 -2
View File
@@ -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;