From: pk910 Date: Sun, 21 Aug 2011 06:44:45 +0000 (+0200) Subject: changed cmd_users output X-Git-Tag: v5.3~501 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=8381faaab6be749e2e817365885dd17bdf9f8ad9 changed cmd_users output --- diff --git a/bot_NeonServ.c b/bot_NeonServ.c index 821026d..0a7df69 100644 --- a/bot_NeonServ.c +++ b/bot_NeonServ.c @@ -45,10 +45,10 @@ static const struct default_language_entry msgtab[] = { {"NS_USERS_HEADER_ACCOUNT", "Accout"}, {"NS_USERS_HEADER_SEEN", "Last Seen"}, {"NS_USERS_HEADER_STATE", "Status"}, - {"NS_USERS_COUNT", "There are \002%d\002 users in %s from level %d to %d."}, - {"NS_USERS_COUNT_1", "There is \002%d\002 user in %s from level %d to %d."}, - {"NS_USERS_COUNT_MATCH", "There are \002%d\002 users in %s from level %d to %d. (\002%d\002 matching your request)"}, - {"NS_USERS_COUNT_MATCH_1", "There is \002%d\002 user in %s from level %d to %d. (\002%d\002 matching your request)"}, + {"NS_USERS_COUNT", "There are \002%d\002 users in %s."}, + {"NS_USERS_COUNT_1", "There is \002%d\002 user in %s."}, + {"NS_USERS_COUNT_MATCH", "There are \002%d\002 users in %s. (\002%d\002 matching your request)"}, + {"NS_USERS_COUNT_MATCH_1", "There is \002%d\002 user in %s. (\002%d\002 matching your request)"}, {"NS_USERS_SEEN_HERE", "Here"}, {"NS_USERS_SEEN_NEVER", "Never"}, {"NS_USERS_STATE_SUSPENDED", "Suspended"}, diff --git a/cmd_neonserv_users.c b/cmd_neonserv_users.c index a013cdb..5b6e065 100644 --- a/cmd_neonserv_users.c +++ b/cmd_neonserv_users.c @@ -103,8 +103,8 @@ static void neonserv_cmd_users_async1(struct ClientSocket *client, struct Client if(!content_count) reply(textclient, user, "NS_TABLE_NONE"); if(usermask || min_access != 1 || max_access != 500) - reply(textclient, user, (table->length == 2 ? "NS_USERS_COUNT_MATCH_1" : "NS_USERS_COUNT_MATCH"), table->length - 1, chan->name, min_access, max_access, content_count); + reply(textclient, user, (table->length == 2 ? "NS_USERS_COUNT_MATCH_1" : "NS_USERS_COUNT_MATCH"), table->length - 1, chan->name, content_count); else - reply(textclient, user, (table->length == 2 ? "NS_USERS_COUNT_1" : "NS_USERS_COUNT"), table->length - 1, chan->name, min_access, max_access); + reply(textclient, user, (table->length == 2 ? "NS_USERS_COUNT_1" : "NS_USERS_COUNT"), table->length - 1, chan->name); table_free(table); }