From 8381faaab6be749e2e817365885dd17bdf9f8ad9 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 21 Aug 2011 08:44:45 +0200 Subject: [PATCH] changed cmd_users output --- bot_NeonServ.c | 8 ++++---- cmd_neonserv_users.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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); } -- 2.20.1