added total user count to cmd_users
authorpk910 <philipp@zoelle1.de>
Thu, 21 Jul 2011 00:54:24 +0000 (02:54 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 21 Jul 2011 00:57:13 +0000 (02:57 +0200)
src/chanserv.c

index f90f0f6f6bde2c241aab487a4a2216428d3b15ed..0b5efcf07c5832b803f1a6c15b985627462d3b04 100644 (file)
@@ -345,6 +345,7 @@ static const struct message_entry msgtab[] = {
     { "CSMSG_ACCESS_SEARCH_HEADER", "%s users from level %d to %d matching %s:" },
     { "CSMSG_INVALID_ACCESS", "$b%s$b is an invalid access level." },
     { "CSMSG_CHANGED_ACCESS", "%s now has access $b%d$b in %s." },
+    { "CSMSG_TOTAL_USERS", "There are $b%d$b users in %s." },
 
 /* Channel note list */
     { "CSMSG_NOTELIST_HEADER", "Notes for $b%s$b:" },
@@ -4171,6 +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);
     return 1;
 }