comparison src/protocols/yahoo/yahoo.c @ 6044:8642749e55ca

[gaim-migrate @ 6494] This makes non-ascii characters such as umlauts, the Spanish o with an accent, and Chinese work with Yahoo! It fixes http://sourceforge.net/tracker/index.php?func=detail&aid=761007&group_id=235&atid=100235 I also removed a small amount if #if 0'ed code from Yahoo! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 06 Jul 2003 21:38:19 +0000
parents 8c44020a958e
children d8cd876e613e
comparison
equal deleted inserted replaced
6043:d8d103eaa457 6044:8642749e55ca
1203 char *msg = g_strdup(what); 1203 char *msg = g_strdup(what);
1204 1204
1205 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); 1205 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc));
1206 yahoo_packet_hash(pkt, 5, who); 1206 yahoo_packet_hash(pkt, 5, who);
1207 yahoo_packet_hash(pkt, 14, msg); 1207 yahoo_packet_hash(pkt, 14, msg);
1208 yahoo_packet_hash(pkt, 97, "1");
1208 1209
1209 yahoo_send_packet(yd, pkt); 1210 yahoo_send_packet(yd, pkt);
1210 1211
1211 yahoo_packet_free(pkt); 1212 yahoo_packet_free(pkt);
1212 1213
1387 yahoo_packet_free(pkt); 1388 yahoo_packet_free(pkt);
1388 } 1389 }
1389 1390
1390 static GaimPlugin *my_protocol = NULL; 1391 static GaimPlugin *my_protocol = NULL;
1391 1392
1392 #if 0
1393 G_MODULE_EXPORT void yahoo_init(GaimPlugin *ret) {
1394 struct proto_user_opt *puo;
1395 ret->protocol = PROTO_YAHOO;
1396 ret->options = OPT_PROTO_MAIL_CHECK;
1397 ret->name = g_strdup("Yahoo");
1398 ret->login = yahoo_login;
1399 ret->close = yahoo_close;
1400 ret->buddy_menu = yahoo_buddy_menu;
1401 ret->list_icon = yahoo_list_icon;
1402 ret->list_emblems = yahoo_list_emblems;
1403 ret->status_text = yahoo_status_text;
1404 ret->tooltip_text = yahoo_tooltip_text;
1405 ret->actions = yahoo_actions;
1406 ret->send_im = yahoo_send_im;
1407 ret->away_states = yahoo_away_states;
1408 ret->set_away = yahoo_set_away;
1409 ret->set_idle = yahoo_set_idle;
1410 ret->keepalive = yahoo_keepalive;
1411 ret->add_buddy = yahoo_add_buddy;
1412 ret->remove_buddy = yahoo_remove_buddy;
1413 ret->send_typing = yahoo_send_typing;
1414
1415 puo = g_new0(struct proto_user_opt, 1);
1416 puo->label = g_strdup(_("Pager Host:"));
1417 puo->def = g_strdup(YAHOO_PAGER_HOST);
1418 puo->pos = USEROPT_PAGERHOST;
1419 ret->protocol_options = g_list_append(ret->protocol_options, puo);
1420
1421 puo = g_new0(struct proto_user_opt, 1);
1422 puo->label = g_strdup(_("Pager Port:"));
1423 puo->def = g_strdup("5050");
1424 puo->pos = USEROPT_PAGERPORT;
1425 ret->protocol_options = g_list_append(ret->protocol_options, puo);
1426
1427 my_protocol = ret;
1428 }
1429
1430 #ifndef STATIC
1431
1432 G_MODULE_EXPORT void gaim_prpl_init(struct prpl *prpl)
1433 {
1434 yahoo_init(prpl);
1435 prpl->plug->desc.api_version = PLUGIN_API_VERSION;
1436 }
1437
1438 #endif
1439 #endif
1440
1441 static GaimPluginProtocolInfo prpl_info = 1393 static GaimPluginProtocolInfo prpl_info =
1442 { 1394 {
1443 GAIM_PROTO_YAHOO, 1395 GAIM_PROTO_YAHOO,
1444 OPT_PROTO_MAIL_CHECK | OPT_PROTO_USE_POINTSIZE, 1396 OPT_PROTO_MAIL_CHECK | OPT_PROTO_USE_POINTSIZE,
1445 NULL, 1397 NULL,