comparison src/protocols/irc/msgs.c @ 10242:c66da6503db8

[gaim-migrate @ 11381] <datallah> anyone here to take patch for HEAD so that IRC buddies sign on? <datallah> something isn't quite right still because they appear with the little "no entry" emblem, but i don't even remember what that means committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Tue, 23 Nov 2004 02:15:47 +0000
parents 42cdec4f639b
children a66cf83552dc
comparison
equal deleted inserted replaced
10241:1d67ab57abb2 10242:c66da6503db8
548 548
549 static void irc_buddy_status(char *name, struct irc_buddy *ib, struct irc_conn *irc) 549 static void irc_buddy_status(char *name, struct irc_buddy *ib, struct irc_conn *irc)
550 { 550 {
551 GaimConnection *gc = gaim_account_get_connection(irc->account); 551 GaimConnection *gc = gaim_account_get_connection(irc->account);
552 GaimBuddy *buddy = gaim_find_buddy(irc->account, name); 552 GaimBuddy *buddy = gaim_find_buddy(irc->account, name);
553 GaimPresence *presence;
554 553
555 if (!gc || !buddy) 554 if (!gc || !buddy)
556 return; 555 return;
557 556
558 presence = gaim_buddy_get_presence(buddy);
559
560 if (ib->online && !ib->flag) { 557 if (ib->online && !ib->flag) {
561 gaim_presence_switch_status(presence, "online"); 558 gaim_prpl_got_user_status(irc->account, name, "offline", NULL);
562 ib->online = FALSE; 559 ib->online = FALSE;
563 } 560 } else if (!ib->online && ib->flag) {
564 561 gaim_prpl_got_user_status(irc->account, name, "online", NULL);
565 if (!ib->online && ib->flag) {
566 gaim_presence_switch_status(presence, "offline");
567 ib->online = TRUE; 562 ib->online = TRUE;
568 } 563 }
569 } 564 }
570 565
571 void irc_msg_join(struct irc_conn *irc, const char *name, const char *from, char **args) 566 void irc_msg_join(struct irc_conn *irc, const char *name, const char *from, char **args)