Mercurial > pidgin.yaz
comparison src/protocols/gg/gg.c @ 9927:fb08a0973b3e
[gaim-migrate @ 10819]
" Currently, the "loggedin" parameter of
serv_got_update() is of type int and used as a boolean.
I updated it and all references to be gboolean.
I also noticed that "presence" in
gaim_blist_update_buddy_presence() is also a really
boolean. of whether or not the buddy is currently
online. There seemed to be some confusion,
particularly in the silc plugin which tried to use a
GaimBuddyPresenceState (coincidentally (or perhaps not)
GAIM_BUDDY_OFFLINE and GAIM_BUDDY_ONLINE work as FALSE
and TRUE respectively). The value passed to
gaim_blist_update_buddy_presence() doesn't directly
become the buddy presence state and this patch helps
avoid confusion in this respect." --Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 01 Sep 2004 01:07:42 +0000 |
parents | e74eb0d11f86 |
children | f8e395a054e2 |
comparison
equal
deleted
inserted
replaced
9926:b23e70bd1215 | 9927:fb08a0973b3e |
---|---|
1 /* | 1 /* |
2 * gaim - Gadu-Gadu Protocol Plugin | 2 * gaim - Gadu-Gadu Protocol Plugin |
3 * $Id: gg.c 10809 2004-08-31 01:45:12Z lschiere $ | 3 * $Id: gg.c 10819 2004-09-01 01:07:42Z lschiere $ |
4 * | 4 * |
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
505 status = UC_NORMAL; | 505 status = UC_NORMAL; |
506 break; | 506 break; |
507 } | 507 } |
508 | 508 |
509 g_snprintf(user, sizeof(user), "%lu", n->uin); | 509 g_snprintf(user, sizeof(user), "%lu", n->uin); |
510 serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? 0 : 1, 0, 0, 0, | 510 serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? FALSE : TRUE, 0, 0, |
511 status); | 511 0, status); |
512 n++; | 512 n++; |
513 } | 513 } |
514 } | 514 } |
515 break; | 515 break; |
516 case GG_EVENT_NOTIFY60: | 516 case GG_EVENT_NOTIFY60: |
550 | 550 |
551 if (buddy && e->event.notify60[i].descr != NULL) { | 551 if (buddy && e->event.notify60[i].descr != NULL) { |
552 buddy->proto_data = g_strdup(e->event.notify60[i].descr); | 552 buddy->proto_data = g_strdup(e->event.notify60[i].descr); |
553 } | 553 } |
554 | 554 |
555 serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? 0 : 1, 0, 0, 0, | 555 serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? FALSE : TRUE, 0, 0, |
556 status); | 556 0, status); |
557 i++; | 557 i++; |
558 } | 558 } |
559 } | 559 } |
560 break; | 560 break; |
561 case GG_EVENT_STATUS: | 561 case GG_EVENT_STATUS: |
576 status = UC_NORMAL; | 576 status = UC_NORMAL; |
577 break; | 577 break; |
578 } | 578 } |
579 | 579 |
580 g_snprintf(user, sizeof(user), "%lu", e->event.status.uin); | 580 g_snprintf(user, sizeof(user), "%lu", e->event.status.uin); |
581 serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? 0 : 1, 0, 0, 0, | 581 serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? FALSE : TRUE, 0, 0, |
582 status); | 582 0, status); |
583 } | 583 } |
584 break; | 584 break; |
585 case GG_EVENT_STATUS60: | 585 case GG_EVENT_STATUS60: |
586 { | 586 { |
587 gchar user[20]; | 587 gchar user[20]; |
617 | 617 |
618 if (buddy && e->event.status60.descr != NULL) { | 618 if (buddy && e->event.status60.descr != NULL) { |
619 buddy->proto_data = g_strdup(e->event.status60.descr); | 619 buddy->proto_data = g_strdup(e->event.status60.descr); |
620 } | 620 } |
621 | 621 |
622 serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? 0 : 1, 0, 0, 0, | 622 serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? FALSE : TRUE, 0, 0, |
623 status); | 623 0, status); |
624 } | 624 } |
625 break; | 625 break; |
626 case GG_EVENT_ACK: | 626 case GG_EVENT_ACK: |
627 gaim_debug(GAIM_DEBUG_MISC, "gg", | 627 gaim_debug(GAIM_DEBUG_MISC, "gg", |
628 "main_callback: message %d to %lu sent with status %d\n", | 628 "main_callback: message %d to %lu sent with status %d\n", |