1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

jabber_get_status no longer returns newly allocated string

This commit is contained in:
James Booth 2013-01-28 21:17:00 +00:00
parent bf1cf04447
commit cb24ba8be1
2 changed files with 2 additions and 6 deletions

View File

@ -2181,8 +2181,6 @@ _cmd_set_priority(gchar **args, struct cmd_help_t help)
prefs_set_priority((int)intval);
// update presence with new priority
jabber_update_presence(jabber_get_presence(), status, 0);
if (status != NULL)
free(status);
cons_show("Priority set to %d.", intval);
}

View File

@ -542,13 +542,11 @@ jabber_get_presence(void)
return jabber_conn.presence;
}
// returns pointer to status, owned by connection
char *
jabber_get_status(void)
{
if (jabber_conn.status == NULL)
return NULL;
else
return strdup(jabber_conn.status);
return jabber_conn.status;
}
void