diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f44160abb..d481b29da 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -5386,7 +5386,7 @@ long map_count(serverrec* s) int c = 0; for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) { - if ((i->second->fd) && (isnick(i->second->nick)) && (strcasecmp(i->second->server,s->name))) c++; + if ((i->second->fd) && (isnick(i->second->nick)) && (!strcasecmp(i->second->server,s->name))) c++; } return c; } @@ -5396,7 +5396,7 @@ long local_count() int c = 0; for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) { - if ((i->second->fd) && (isnick(i->second->nick)) && (strcasecmp(i->second->server,ServerName))) c++; + if ((i->second->fd) && (isnick(i->second->nick)) && (!strcasecmp(i->second->server,ServerName))) c++; } return c; } @@ -5418,7 +5418,7 @@ void handle_map(char **parameters, int pcnt, userrec *user) { char line[MAXBUF]; snprintf(line,MAXBUF,"006 %s :%s",user->nick,ServerName); - while (strlen(line) < 40) + while (strlen(line) < 50) strcat(line," "); WriteServ(user->fd,"%s%d (%.2f%%)",line,local_count(),(float)(((float)local_count()/(float)usercnt())*100)); for (int j = 0; j < 255; j++) @@ -5426,7 +5426,7 @@ void handle_map(char **parameters, int pcnt, userrec *user) if (servers[j] != NULL) { snprintf(line,MAXBUF,"006 %s :%c-%s",user->nick,islast(servers[j]),servers[j]->name); - while (strlen(line) < 40) + while (strlen(line) < 50) strcat(line," "); WriteServ(user->fd,"%s%d (%.2f%%)",line,map_count(servers[j]),(float)(((float)map_count(servers[j])/(float)usercnt())*100)); } |