comparison libpurple/protocols/irc/msgs.c @ 32827:4a34689eeb33 default tip

merged from im.pidgin.pidgin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 19 Nov 2011 14:42:54 +0900
parents 2ec94166be43
children
comparison
equal deleted inserted replaced
32692:0f94ec89f0bc 32827:4a34689eeb33
90 account = purple_connection_get_account(gc); 90 account = purple_connection_get_account(gc);
91 91
92 /* If we're away then set our away message */ 92 /* If we're away then set our away message */
93 status = purple_account_get_active_status(irc->account); 93 status = purple_account_get_active_status(irc->account);
94 if (!purple_status_get_type(status) != PURPLE_STATUS_AVAILABLE) { 94 if (!purple_status_get_type(status) != PURPLE_STATUS_AVAILABLE) {
95 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl); 95 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc));
96 prpl_info->set_status(irc->account, status); 96 prpl_info->set_status(irc->account, status);
97 } 97 }
98 98
99 /* this used to be in the core, but it's not now */ 99 /* this used to be in the core, but it's not now */
100 for (buddies = purple_find_buddies(account, NULL); buddies; 100 for (buddies = purple_find_buddies(account, NULL); buddies;
455 g_list_free(values); 455 g_list_free(values);
456 456
457 g_free(userhost); 457 g_free(userhost);
458 g_free(realname); 458 g_free(realname);
459 459
460 flags = cb->flags; 460 flags = purple_conv_chat_cb_get_flags(cb);
461 461
462 if (args[6][0] == 'G' && !(flags & PURPLE_CBFLAGS_AWAY)) { 462 if (args[6][0] == 'G' && !(flags & PURPLE_CBFLAGS_AWAY)) {
463 purple_conv_chat_user_set_flags(chat, cb->name, flags | PURPLE_CBFLAGS_AWAY); 463 purple_conv_chat_user_set_flags(chat, purple_conv_chat_cb_get_name(cb), flags | PURPLE_CBFLAGS_AWAY);
464 } else if(args[6][0] == 'H' && (flags & PURPLE_CBFLAGS_AWAY)) { 464 } else if(args[6][0] == 'H' && (flags & PURPLE_CBFLAGS_AWAY)) {
465 purple_conv_chat_user_set_flags(chat, cb->name, flags & ~PURPLE_CBFLAGS_AWAY); 465 purple_conv_chat_user_set_flags(chat, purple_conv_chat_cb_get_name(cb), flags & ~PURPLE_CBFLAGS_AWAY);
466 } 466 }
467 } 467 }
468 } 468 }
469 469
470 void irc_msg_list(struct irc_conn *irc, const char *name, const char *from, char **args) 470 void irc_msg_list(struct irc_conn *irc, const char *name, const char *from, char **args)