| 97 purple_connection_set_state(gc, PURPLE_CONNECTED); |
97 purple_connection_set_state(gc, PURPLE_CONNECTED); |
| 98 account = purple_connection_get_account(gc); |
98 account = purple_connection_get_account(gc); |
| 99 |
99 |
| 100 /* If we're away then set our away message */ |
100 /* If we're away then set our away message */ |
| 101 status = purple_account_get_active_status(irc->account); |
101 status = purple_account_get_active_status(irc->account); |
| 102 if (!purple_status_get_type(status) != PURPLE_STATUS_AVAILABLE) { |
102 if (purple_status_get_type(status) != PURPLE_STATUS_AVAILABLE) { |
| 103 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc)); |
103 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc)); |
| 104 prpl_info->set_status(irc->account, status); |
104 prpl_info->set_status(irc->account, status); |
| 105 } |
105 } |
| 106 |
106 |
| 107 /* this used to be in the core, but it's not now */ |
107 /* this used to be in the core, but it's not now */ |