fixed cmd_users counter (-1)
authorpk910 <philipp@zoelle1.de>
Thu, 21 Jul 2011 01:23:34 +0000 (03:23 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 21 Jul 2011 01:23:34 +0000 (03:23 +0200)
src/chanserv.c

index 0b5efcf07c5832b803f1a6c15b985627462d3b04..62d896c3091de5a701edc1137f9445f22b29b884 100644 (file)
@@ -4172,7 +4172,7 @@ cmd_list_users(struct userNode *user, struct chanNode *channel, unsigned int arg
     }
     free(lData.table.contents[0]);
     free(lData.table.contents);
-    reply("CSMSG_TOTAL_USERS",lData.table.length,channel->name);
+    reply("CSMSG_TOTAL_USERS",(lData.table.length - 1),channel->name);
     return 1;
 }