mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Free filtered lists for who command
This commit is contained in:
parent
38e6dc0e85
commit
a9c69670fa
@ -1069,6 +1069,7 @@ _who_roster(gchar **args, struct cmd_help_t help)
|
||||
cons_show_contacts(filtered);
|
||||
}
|
||||
}
|
||||
g_slist_free(filtered);
|
||||
|
||||
// unavailable
|
||||
} else if (strcmp("unavailable", presence) == 0) {
|
||||
@ -1097,6 +1098,7 @@ _who_roster(gchar **args, struct cmd_help_t help)
|
||||
cons_show_contacts(filtered);
|
||||
}
|
||||
}
|
||||
g_slist_free(filtered);
|
||||
|
||||
// online, available resources
|
||||
} else if (strcmp("online", presence) == 0) {
|
||||
@ -1125,6 +1127,7 @@ _who_roster(gchar **args, struct cmd_help_t help)
|
||||
cons_show_contacts(filtered);
|
||||
}
|
||||
}
|
||||
g_slist_free(filtered);
|
||||
|
||||
// offline, no available resources
|
||||
} else if (strcmp("offline", presence) == 0) {
|
||||
@ -1153,6 +1156,7 @@ _who_roster(gchar **args, struct cmd_help_t help)
|
||||
cons_show_contacts(filtered);
|
||||
}
|
||||
}
|
||||
g_slist_free(filtered);
|
||||
|
||||
// show specific status
|
||||
} else {
|
||||
@ -1181,6 +1185,7 @@ _who_roster(gchar **args, struct cmd_help_t help)
|
||||
cons_show_contacts(filtered);
|
||||
}
|
||||
}
|
||||
g_slist_free(filtered);
|
||||
}
|
||||
|
||||
g_slist_free(list);
|
||||
|
Loading…
Reference in New Issue
Block a user