summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/os_userlist.c1
-rw-r--r--src/modules/mysql/db_mysql_execute.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/os_userlist.c b/src/core/os_userlist.c
index 331818bec..30a7850b6 100644
--- a/src/core/os_userlist.c
+++ b/src/core/os_userlist.c
@@ -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
{
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;