Mercurial > pidgin
diff src/protocols/rendezvous/rendezvous.c @ 10009:c124bef68132
[gaim-migrate @ 10926]
Thou shalt NULL terminate va_lists!
This fixes the crash-at-startup bug I mentioned in my commit
of Dave West's stuff last night.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Fri, 10 Sep 2004 19:51:52 +0000 |
| parents | 269029c55169 |
| children | 32467b63f55a |
line wrap: on
line diff
--- a/src/protocols/rendezvous/rendezvous.c Fri Sep 10 04:43:31 2004 +0000 +++ b/src/protocols/rendezvous/rendezvous.c Fri Sep 10 19:51:52 2004 +0000 @@ -93,7 +93,7 @@ b = gaim_buddy_new(account, name, NULL); /* gaim_blist_node_set_flag(b, GAIM_BLIST_NODE_FLAG_NO_SAVE); */ gaim_blist_add_buddy(b, NULL, g, NULL); - serv_got_update(gc, b->name, TRUE, 0); + gaim_prpl_got_user_status(account, b->name, "online", NULL); #if 0 RendezvousBuddy *rb; @@ -123,7 +123,7 @@ if (b == NULL) return; - serv_got_update(gc, b->name, FALSE, 0); + gaim_prpl_got_user_status(account, b->name, "offline", NULL); gaim_blist_remove_buddy(b); /* XXX - This results in incorrect group counts--needs to be fixed in the core */ /* XXX - We also need to call remove_idle_buddy() in server.c for idle buddies */ @@ -155,7 +155,7 @@ b = (GaimBuddy *)bnode; if (b->account != account) continue; - serv_got_update(gc, b->name, FALSE, 0); + gaim_prpl_got_user_status(account, b->name, "offline", NULL); gaim_blist_remove_buddy(b); } } @@ -241,11 +241,12 @@ rb->idle += 978307200; /* convert to seconds-since-epoch */ } rb->status = UC_IDLE; + gaim_prpl_got_user_idle(account, b->name, TRUE, rb->idle); } else if (!strcmp(node1->value, "dnd")) { /* Away */ rb->status = UC_UNAVAILABLE; } - serv_got_update(gc, name, TRUE, 0); + gaim_prpl_got_user_status(account, b->name, "online", NULL); /* XXX - Idle time is rb->idle and status is rb->status */ }
