Mercurial > pidgin
diff src/protocols/irc/msgs.c @ 9951:42cdec4f639b
[gaim-migrate @ 10847]
<faceprint> datallah: i can just commit that without thinking, right?
<audiokat2> faceprint: you can't break HEAD any worse right now :)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 04 Sep 2004 16:51:49 +0000 |
parents | fb08a0973b3e |
children | c66da6503db8 |
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c Sat Sep 04 05:36:32 2004 +0000 +++ b/src/protocols/irc/msgs.c Sat Sep 04 16:51:49 2004 +0000 @@ -550,17 +550,20 @@ { GaimConnection *gc = gaim_account_get_connection(irc->account); GaimBuddy *buddy = gaim_find_buddy(irc->account, name); + GaimPresence *presence; if (!gc || !buddy) return; + presence = gaim_buddy_get_presence(buddy); + if (ib->online && !ib->flag) { - serv_got_update(gc, buddy->name, FALSE, 0, 0, 0, 0); + gaim_presence_switch_status(presence, "online"); ib->online = FALSE; } if (!ib->online && ib->flag) { - serv_got_update(gc, buddy->name, TRUE, 0, 0, 0, 0); + gaim_presence_switch_status(presence, "offline"); ib->online = TRUE; } }