diff options
author | James Booth <boothj5@gmail.com> | 2015-11-18 00:06:00 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-18 00:06:00 +0000 |
commit | 2260e3bd6f7e99fd16f05372c7545b8e2379ff6e (patch) | |
tree | ac0a6aa5f378e0a26c13f5d8ff37f50dfe354143 /src/command | |
parent | 8e8852fa9f0171bb2c0826303b97655a32e481ca (diff) | |
download | profani-tty-2260e3bd6f7e99fd16f05372c7545b8e2379ff6e.tar.gz |
Pass ordering to roster list functions
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 67f8ae98..c1edfdb2 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1320,13 +1320,13 @@ _who_roster(ProfWin *window, const char *const command, gchar **args) cons_show(""); GSList *list = NULL; if (group) { - list = roster_get_group(group); + list = roster_get_group(group, ROSTER_ORD_NAME); if (list == NULL) { cons_show("No such group: %s.", group); return; } } else { - list = roster_get_contacts(); + list = roster_get_contacts(ROSTER_ORD_NAME); if (list == NULL) { cons_show("No contacts in roster."); return; @@ -1628,7 +1628,7 @@ cmd_group(ProfWin *window, const char *const command, gchar **args) return TRUE; } - GSList *list = roster_get_group(group); + GSList *list = roster_get_group(group, ROSTER_ORD_NAME); cons_show_roster_group(group, list); return TRUE; } @@ -1711,7 +1711,7 @@ cmd_roster(ProfWin *window, const char *const command, gchar **args) return TRUE; } - GSList *list = roster_get_contacts(); + GSList *list = roster_get_contacts(ROSTER_ORD_NAME); cons_show_roster(list); g_slist_free(list); return TRUE; @@ -1931,7 +1931,7 @@ cmd_roster(ProfWin *window, const char *const command, gchar **args) return TRUE; } - GSList *all = roster_get_contacts(); + GSList *all = roster_get_contacts(ROSTER_ORD_NAME); GSList *curr = all; while (curr) { PContact contact = curr->data; |