Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 494:3f5aa4852684
Fix small bug in roster_setstatus()
For an existing resource, the priority was not updated.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 09 Oct 2005 18:55:34 +0200 |
parents | 21ab22a60bcb |
children | 7c1ca00070e8 |
comparison
equal
deleted
inserted
replaced
493:dba5de0b89bc | 494:3f5aa4852684 |
---|---|
395 return; | 395 return; |
396 } | 396 } |
397 | 397 |
398 // New or updated resource | 398 // New or updated resource |
399 p_res = get_or_add_resource(roster_usr, resname, prio); | 399 p_res = get_or_add_resource(roster_usr, resname, prio); |
400 p_res->prio = prio; | |
400 p_res->status = bstat; | 401 p_res->status = bstat; |
401 if (p_res->status_msg) { | 402 if (p_res->status_msg) { |
402 g_free((gchar*)p_res->status_msg); | 403 g_free((gchar*)p_res->status_msg); |
403 p_res->status_msg = NULL; | 404 p_res->status_msg = NULL; |
404 } | 405 } |