Show all resources ordered by priority with /info command

This commit is contained in:
James Booth
2013-02-17 00:05:57 +00:00
parent 6794fb8101
commit a84e4adee7
12 changed files with 226 additions and 173 deletions

View File

@@ -339,7 +339,7 @@ prof_handle_contact_offline(char *contact, char *resource, char *status)
{
gboolean updated = contact_list_contact_offline(contact, resource, status);
if (updated) {
if (resource != NULL && updated) {
PContact result = contact_list_get_contact(contact);
if (p_contact_subscription(result) != NULL) {
if (strcmp(p_contact_subscription(result), "none") != 0) {