Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 1365:c7e709719c43
Small code cleanup
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 12 Nov 2007 19:27:55 +0100 |
parents | 32077249de77 |
children | cd9182f0b5c7 |
comparison
equal
deleted
inserted
replaced
1364:ff1f6facdc0c | 1365:c7e709719c43 |
---|---|
503 struct T_presence room_presence; | 503 struct T_presence room_presence; |
504 room_presence.st = st; | 504 room_presence.st = st; |
505 room_presence.msg = msg; | 505 room_presence.msg = msg; |
506 foreach_buddy(ROSTER_TYPE_ROOM, &roompresence, &room_presence); | 506 foreach_buddy(ROSTER_TYPE_ROOM, &roompresence, &room_presence); |
507 } | 507 } |
508 } | 508 |
509 | 509 // We'll have to update the roster if we switch to/from offline because |
510 if (online) { | |
511 // We'll need to update the roster if we switch to/from offline because | |
512 // we don't know the presences of buddies when offline... | 510 // we don't know the presences of buddies when offline... |
513 if (mystatus == offline || st == offline) | 511 if (mystatus == offline || st == offline) |
514 update_roster = TRUE; | 512 update_roster = TRUE; |
515 | 513 |
516 hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : "")); | 514 hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : "")); |
517 mystatus = st; | 515 mystatus = st; |
518 } | 516 } |
517 | |
519 if (st) | 518 if (st) |
520 mywantedstatus = st; | 519 mywantedstatus = st; |
520 | |
521 if (msg != mystatusmsg) { | 521 if (msg != mystatusmsg) { |
522 g_free(mystatusmsg); | 522 g_free(mystatusmsg); |
523 if (*msg) | 523 if (*msg) |
524 mystatusmsg = g_strdup(msg); | 524 mystatusmsg = g_strdup(msg); |
525 else | 525 else |