diff -r ac8bc7606554 -r 19b949eca7f8 src/protocols/irc/msgs.c --- 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; } }