Use autocomplete instead of hash table for subscription requests

This commit is contained in:
James Booth
2013-05-05 23:20:27 +01:00
parent ae4c54bdcc
commit 53eeb0ef45
3 changed files with 16 additions and 22 deletions

View File

@@ -571,16 +571,17 @@ cons_show_software_version(const char * const jid, const char * const presence,
void
cons_show_received_subs(void)
{
GList *received = presence_get_subscription_requests();
GSList *received = presence_get_subscription_requests();
if (received == NULL) {
cons_show("No outstanding subscription requests.");
} else {
cons_show("Outstanding subscription requests from:",
g_list_length(received));
g_slist_length(received));
while (received != NULL) {
cons_show(" %s", received->data);
received = g_list_next(received);
received = g_slist_next(received);
}
g_slist_free_full(received, g_free);
}
}