# HG changeset patch # User Sadrul Habib Chowdhury # Date 1215775490 0 # Node ID f4b2fecfb557b083e61be8fb411d5db050a6cef4 # Parent 819346c150f135b78ff67f8efddf5bfa18d67b45 Show the count of users when joining a chat. diff -r 819346c150f1 -r f4b2fecfb557 finch/gntconv.c --- a/finch/gntconv.c Fri Jul 11 06:35:32 2008 +0000 +++ b/finch/gntconv.c Fri Jul 11 11:24:50 2008 +0000 @@ -1059,9 +1059,12 @@ if (!new_arrivals) { /* Print the list of users in the room */ - GString *string = g_string_new(_("List of users:\n")); + GString *string = g_string_new(NULL); GList *iter; + int count = g_list_length(users); + g_string_printf(string, + ngettext("List of %d user:\n", "List of %d users:\n", count), count); for (iter = users; iter; iter = iter->next) { PurpleConvChatBuddy *cbuddy = iter->data;