/* special function to log us on to the yahoo chat service */ static void yahoo_chat_online(GaimConnection *gc) { struct yahoo_data *yd = gc->proto_data; struct yahoo_packet *pkt; if (yd->wm) { ycht_connection_open(gc); return; } pkt = yahoo_packet_new(YAHOO_SERVICE_CHATONLINE, YAHOO_STATUS_AVAILABLE,0); yahoo_packet_hash(pkt, "sss", 1, gaim_connection_get_display_name(gc), 109, gaim_connection_get_display_name(gc), 6, "abcde"); yahoo_packet_send_and_free(pkt, yd); }
/* special function to log us on to the yahoo chat service */ static void yahoo_chat_online(PurpleConnection *gc) { YahooData *yd = gc->proto_data; struct yahoo_packet *pkt; const char *rll; if (yd->wm) { ycht_connection_open(gc); return; } rll = purple_account_get_string(purple_connection_get_account(gc), "room_list_locale", YAHOO_ROOMLIST_LOCALE); pkt = yahoo_packet_new(YAHOO_SERVICE_CHATONLINE, YAHOO_STATUS_AVAILABLE, yd->session_id); yahoo_packet_hash(pkt, "sssss", 109, purple_connection_get_display_name(gc), 1, purple_connection_get_display_name(gc), 6, "abcde", /* I'm not sure this is the correct way to set this. */ 98, rll, 135, yd->jp ? YAHOO_CLIENT_VERSION : YAHOOJP_CLIENT_VERSION); yahoo_packet_send_and_free(pkt, yd); }