comparison libpurple/protocols/irc/msgs.c @ 32767:2ec94166be43

On the way to hiding the PurpleConnection struct. * Added purple_connection_get_flags() and purple_connection_set_flags() * Use purple_connection_ accessor functions.
author andrew.victor@mxit.com
date Tue, 18 Oct 2011 18:47:48 +0000
parents c39583aad67c
children
comparison
equal deleted inserted replaced
32766:ea2b621fd3ba 32767:2ec94166be43
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;