diff 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
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Sun Jul 06 19:06:42 2003 +0000
+++ b/src/protocols/yahoo/yahoo.c	Sun Jul 06 21:38:19 2003 +0000
@@ -1205,6 +1205,7 @@
 	yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc));
 	yahoo_packet_hash(pkt, 5, who);
 	yahoo_packet_hash(pkt, 14, msg);
+	yahoo_packet_hash(pkt, 97, "1");
 
 	yahoo_send_packet(yd, pkt);
 
@@ -1389,55 +1390,6 @@
 
 static GaimPlugin *my_protocol = NULL;
 
-#if 0
-G_MODULE_EXPORT void yahoo_init(GaimPlugin *ret) {
-	struct proto_user_opt *puo;
-	ret->protocol = PROTO_YAHOO;
-	ret->options = OPT_PROTO_MAIL_CHECK;
-	ret->name = g_strdup("Yahoo");
-	ret->login = yahoo_login;
-	ret->close = yahoo_close;
-	ret->buddy_menu = yahoo_buddy_menu;
-	ret->list_icon = yahoo_list_icon;
-	ret->list_emblems = yahoo_list_emblems;
-	ret->status_text = yahoo_status_text;
-	ret->tooltip_text = yahoo_tooltip_text;
-	ret->actions = yahoo_actions;
-	ret->send_im = yahoo_send_im;
-	ret->away_states = yahoo_away_states;
-	ret->set_away = yahoo_set_away;
-	ret->set_idle = yahoo_set_idle;
-	ret->keepalive = yahoo_keepalive;
-	ret->add_buddy = yahoo_add_buddy;
-	ret->remove_buddy = yahoo_remove_buddy;
-	ret->send_typing = yahoo_send_typing;
-
-	puo = g_new0(struct proto_user_opt, 1);
-	puo->label = g_strdup(_("Pager Host:"));
-	puo->def = g_strdup(YAHOO_PAGER_HOST);
-	puo->pos = USEROPT_PAGERHOST;
-	ret->protocol_options = g_list_append(ret->protocol_options, puo);
-
-	puo = g_new0(struct proto_user_opt, 1);
-	puo->label = g_strdup(_("Pager Port:"));
-	puo->def = g_strdup("5050");
-	puo->pos = USEROPT_PAGERPORT;
-	ret->protocol_options = g_list_append(ret->protocol_options, puo);
-
-	my_protocol = ret;
-}
-
-#ifndef STATIC
-
-G_MODULE_EXPORT void gaim_prpl_init(struct prpl *prpl)
-{
-	yahoo_init(prpl);
-	prpl->plug->desc.api_version = PLUGIN_API_VERSION;
-}
-
-#endif
-#endif
-
 static GaimPluginProtocolInfo prpl_info =
 {
 	GAIM_PROTO_YAHOO,