cpw.rekkanoryo.yahoo.separate_prpls: ddaee38c: Very rudimentary start to separate prpls...
rekkanoryo at pidgin.im
rekkanoryo at pidgin.im
Sun Jul 5 01:40:40 EDT 2009
-----------------------------------------------------------------
Revision: ddaee38cdf5da9bfffab1ad5efa6ec86ff816247
Ancestor: 2749cc2fd9d089a35020babb99f0c32e77f515d9
Author: rekkanoryo at pidgin.im
Date: 2009-07-05T05:35:05
Branch: im.pidgin.cpw.rekkanoryo.yahoo.separate_prpls
URL: http://d.pidgin.im/viewmtn/revision/info/ddaee38cdf5da9bfffab1ad5efa6ec86ff816247
Added files:
libpurple/protocols/yahoo/libyahoo.c
libpurple/protocols/yahoo/libyahoojp.c
Modified files:
libpurple/protocols/yahoo/libymsg.c
ChangeLog:
Very rudimentary start to separate prpls. Removed URI handler from the
JAPAN prpl since it would collide with the other prpl's scheme. Need to
figure out if there is a second URI scheme we need to deal with.
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libyahoo.c d7d11632826322866ccbbf2f9d31000fc9ed70ed
+++ libpurple/protocols/yahoo/libyahoo.c d7d11632826322866ccbbf2f9d31000fc9ed70ed
@@ -0,0 +1,197 @@
+/*
+ * purple
+ *
+ * Purple is the legal property of its developers, whose names are too numerous
+ * to list here. Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ *
+ */
+
+static PurpleWhiteboardPrplOps yahoo_whiteboard_prpl_ops =
+{
+ yahoo_doodle_start,
+ yahoo_doodle_end,
+ yahoo_doodle_get_dimensions,
+ NULL,
+ yahoo_doodle_get_brush,
+ yahoo_doodle_set_brush,
+ yahoo_doodle_send_draw_list,
+ yahoo_doodle_clear,
+
+ /* padding */
+ NULL,
+ NULL,
+ NULL,
+ NULL
+};
+
+static PurplePluginProtocolInfo prpl_info =
+{
+ OPT_PROTO_MAIL_CHECK | OPT_PROTO_CHAT_TOPIC,
+ NULL, /* user_splits */
+ NULL, /* protocol_options */
+ {"png,gif,jpeg", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND},
+ yahoo_list_icon,
+ yahoo_list_emblem,
+ yahoo_status_text,
+ yahoo_tooltip_text,
+ yahoo_status_types,
+ yahoo_blist_node_menu,
+ yahoo_c_info,
+ yahoo_c_info_defaults,
+ yahoo_login,
+ yahoo_close,
+ yahoo_send_im,
+ NULL, /* set info */
+ yahoo_send_typing,
+ yahoo_get_info,
+ yahoo_set_status,
+ yahoo_set_idle,
+ NULL, /* change_passwd*/
+ yahoo_add_buddy,
+ NULL, /* add_buddies */
+ yahoo_remove_buddy,
+ NULL, /* remove_buddies */
+ NULL, /* add_permit */
+ yahoo_add_deny,
+ NULL, /* rem_permit */
+ yahoo_rem_deny,
+ yahoo_set_permit_deny,
+ yahoo_c_join,
+ NULL, /* reject chat invite */
+ yahoo_get_chat_name,
+ yahoo_c_invite,
+ yahoo_c_leave,
+ NULL, /* chat whisper */
+ yahoo_c_send,
+ yahoo_keepalive,
+ NULL, /* register_user */
+ NULL, /* get_cb_info */
+ NULL, /* get_cb_away */
+ yahoo_update_alias, /* alias_buddy */
+ yahoo_change_buddys_group,
+ yahoo_rename_group,
+ NULL, /* buddy_free */
+ NULL, /* convo_closed */
+ purple_normalize_nocase, /* normalize */
+ yahoo_set_buddy_icon,
+ NULL, /* void (*remove_group)(PurpleConnection *gc, const char *group);*/
+ NULL, /* char *(*get_cb_real_name)(PurpleConnection *gc, int id, const char *who); */
+ NULL, /* set_chat_topic */
+ NULL, /* find_blist_chat */
+ yahoo_roomlist_get_list,
+ yahoo_roomlist_cancel,
+ yahoo_roomlist_expand_category,
+ NULL, /* can_receive_file */
+ yahoo_send_file,
+ yahoo_new_xfer,
+ yahoo_offline_message, /* offline_message */
+ &yahoo_whiteboard_prpl_ops,
+ NULL, /* send_raw */
+ NULL, /* roomlist_room_serialize */
+ NULL, /* unregister_user */
+
+ yahoo_send_attention,
+ yahoo_attention_types,
+
+ sizeof(PurplePluginProtocolInfo), /* struct_size */
+ yahoo_get_account_text_table, /* get_account_text_table */
+ NULL, /* initiate_media */
+ NULL /* can_do_media */
+};
+
+static PurplePluginInfo info =
+{
+ PURPLE_PLUGIN_MAGIC,
+ PURPLE_MAJOR_VERSION,
+ PURPLE_MINOR_VERSION,
+ PURPLE_PLUGIN_PROTOCOL, /**< type */
+ NULL, /**< ui_requirement */
+ 0, /**< flags */
+ NULL, /**< dependencies */
+ PURPLE_PRIORITY_DEFAULT, /**< priority */
+ "prpl-yahoo", /**< id */
+ "Yahoo", /**< name */
+ DISPLAY_VERSION, /**< version */
+ /** summary */
+ N_("Yahoo Protocol Plugin"),
+ /** description */
+ N_("Yahoo Protocol Plugin"),
+ NULL, /**< author */
+ PURPLE_WEBSITE, /**< homepage */
+ NULL, /**< load */
+ yahoo_unload_plugin, /**< unload */
+ NULL, /**< destroy */
+ NULL, /**< ui_info */
+ &prpl_info, /**< extra_info */
+ NULL,
+ yahoo_actions,
+
+ /* padding */
+ NULL,
+ NULL,
+ NULL,
+ NULL
+};
+
+static void
+init_plugin(PurplePlugin *plugin)
+{
+ PurpleAccountOption *option;
+
+ option = purple_account_option_string_new(_("Pager server"), "server", YAHOO_PAGER_HOST);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_int_new(_("Pager port"), "port", YAHOO_PAGER_PORT);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_string_new(_("File transfer server"), "xfer_host", YAHOO_XFER_HOST);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_int_new(_("File transfer port"), "xfer_port", YAHOO_XFER_PORT);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_string_new(_("Chat room locale"), "room_list_locale", YAHOO_ROOMLIST_LOCALE);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_bool_new(_("Ignore conference and chatroom invitations"), "ignore_invites", FALSE);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_string_new(_("Encoding"), "local_charset", "UTF-8");
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+
+#if 0
+ option = purple_account_option_string_new(_("Chat room list URL"), "room_list", YAHOO_ROOMLIST_URL);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_string_new(_("Yahoo Chat server"), "ycht-server", YAHOO_YCHT_HOST);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_int_new(_("Yahoo Chat port"), "ycht-port", YAHOO_YCHT_PORT);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+#endif
+
+ my_protocol = plugin;
+ yahoopurple_register_commands();
+ yahoo_init_colorht();
+
+ purple_signal_connect(purple_get_core(), "uri-handler", plugin,
+ PURPLE_CALLBACK(yahoo_uri_handler), NULL);
+}
+
+PURPLE_INIT_PLUGIN(yahoo, init_plugin, info);
============================================================
--- libpurple/protocols/yahoo/libyahoojp.c b0a0c2eef5926497f408050d7c1d5cd6bd42d5fc
+++ libpurple/protocols/yahoo/libyahoojp.c b0a0c2eef5926497f408050d7c1d5cd6bd42d5fc
@@ -0,0 +1,195 @@
+/*
+ * purple
+ *
+ * Purple is the legal property of its developers, whose names are too numerous
+ * to list here. Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ *
+ */
+
+static PurpleWhiteboardPrplOps yahoo_whiteboard_prpl_ops =
+{
+ yahoo_doodle_start,
+ yahoo_doodle_end,
+ yahoo_doodle_get_dimensions,
+ NULL,
+ yahoo_doodle_get_brush,
+ yahoo_doodle_set_brush,
+ yahoo_doodle_send_draw_list,
+ yahoo_doodle_clear,
+
+ /* padding */
+ NULL,
+ NULL,
+ NULL,
+ NULL
+};
+
+static PurplePluginProtocolInfo prpl_info =
+{
+ OPT_PROTO_MAIL_CHECK | OPT_PROTO_CHAT_TOPIC,
+ NULL, /* user_splits */
+ NULL, /* protocol_options */
+ {"png,gif,jpeg", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND},
+ yahoo_list_icon,
+ yahoo_list_emblem,
+ yahoo_status_text,
+ yahoo_tooltip_text,
+ yahoo_status_types,
+ yahoo_blist_node_menu,
+ yahoo_c_info,
+ yahoo_c_info_defaults,
+ yahoo_login,
+ yahoo_close,
+ yahoo_send_im,
+ NULL, /* set info */
+ yahoo_send_typing,
+ yahoo_get_info,
+ yahoo_set_status,
+ yahoo_set_idle,
+ NULL, /* change_passwd*/
+ yahoo_add_buddy,
+ NULL, /* add_buddies */
+ yahoo_remove_buddy,
+ NULL, /* remove_buddies */
+ NULL, /* add_permit */
+ yahoo_add_deny,
+ NULL, /* rem_permit */
+ yahoo_rem_deny,
+ yahoo_set_permit_deny,
+ yahoo_c_join,
+ NULL, /* reject chat invite */
+ yahoo_get_chat_name,
+ yahoo_c_invite,
+ yahoo_c_leave,
+ NULL, /* chat whisper */
+ yahoo_c_send,
+ yahoo_keepalive,
+ NULL, /* register_user */
+ NULL, /* get_cb_info */
+ NULL, /* get_cb_away */
+ yahoo_update_alias, /* alias_buddy */
+ yahoo_change_buddys_group,
+ yahoo_rename_group,
+ NULL, /* buddy_free */
+ NULL, /* convo_closed */
+ purple_normalize_nocase, /* normalize */
+ yahoo_set_buddy_icon,
+ NULL, /* void (*remove_group)(PurpleConnection *gc, const char *group);*/
+ NULL, /* char *(*get_cb_real_name)(PurpleConnection *gc, int id, const char *who); */
+ NULL, /* set_chat_topic */
+ NULL, /* find_blist_chat */
+ yahoo_roomlist_get_list,
+ yahoo_roomlist_cancel,
+ yahoo_roomlist_expand_category,
+ NULL, /* can_receive_file */
+ yahoo_send_file,
+ yahoo_new_xfer,
+ yahoo_offline_message, /* offline_message */
+ &yahoo_whiteboard_prpl_ops,
+ NULL, /* send_raw */
+ NULL, /* roomlist_room_serialize */
+ NULL, /* unregister_user */
+
+ yahoo_send_attention,
+ yahoo_attention_types,
+
+ sizeof(PurplePluginProtocolInfo), /* struct_size */
+ yahoo_get_account_text_table, /* get_account_text_table */
+ NULL, /* initiate_media */
+ NULL /* can_do_media */
+};
+
+static PurplePluginInfo info =
+{
+ PURPLE_PLUGIN_MAGIC,
+ PURPLE_MAJOR_VERSION,
+ PURPLE_MINOR_VERSION,
+ PURPLE_PLUGIN_PROTOCOL, /**< type */
+ NULL, /**< ui_requirement */
+ 0, /**< flags */
+ NULL, /**< dependencies */
+ PURPLE_PRIORITY_DEFAULT, /**< priority */
+ "prpl-yahoojp", /**< id */
+ "Yahoo JAPAN", /**< name */
+ DISPLAY_VERSION, /**< version */
+ /** summary */
+ N_("Yahoo JAPAN Protocol Plugin"),
+ /** description */
+ N_("Yahoo JAPAN Protocol Plugin"),
+ NULL, /**< author */
+ PURPLE_WEBSITE, /**< homepage */
+ NULL, /**< load */
+ yahoo_unload_plugin, /**< unload */
+ NULL, /**< destroy */
+ NULL, /**< ui_info */
+ &prpl_info, /**< extra_info */
+ NULL,
+ yahoo_actions,
+
+ /* padding */
+ NULL,
+ NULL,
+ NULL,
+ NULL
+};
+
+static void
+init_plugin(PurplePlugin *plugin)
+{
+ PurpleAccountOption *option;
+
+ option = purple_account_option_string_new(_("Pager server"), "server", YAHOOJP_PAGER_HOST);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_int_new(_("Pager port"), "port", YAHOO_PAGER_PORT);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_string_new(_("File transfer server"), "xfer_host", YAHOOJP_XFER_HOST);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_int_new(_("File transfer port"), "xfer_port", YAHOO_XFER_PORT);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_string_new(_("Chat room locale"), "room_list_locale", YAHOOJP_ROOMLIST_LOCALE);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_bool_new(_("Ignore conference and chatroom invitations"), "ignore_invites", FALSE);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_string_new(_("Encoding"), "local_charset", "UTF-8");
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+
+#if 0
+ option = purple_account_option_string_new(_("Chat room list URL"), "room_list", YAHOO_ROOMLIST_URL);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_string_new(_("Yahoo Chat server"), "ycht-server", YAHOO_YCHT_HOST);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
+ option = purple_account_option_int_new(_("Yahoo Chat port"), "ycht-port", YAHOO_YCHT_PORT);
+ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+#endif
+
+ my_protocol = plugin;
+ yahoopurple_register_commands();
+ yahoo_init_colorht();
+}
+
+PURPLE_INIT_PLUGIN(yahoojp, init_plugin, info);
+
============================================================
--- libpurple/protocols/yahoo/libymsg.c f9527b196c7dc753070be0a387f333c290f09dd9
+++ libpurple/protocols/yahoo/libymsg.c 97fd08632db7075fbdf06a5fe27825194ed060c4
@@ -5060,7 +5060,7 @@ static gboolean yahoo_uri_handler(const
return FALSE;
}
-static GHashTable *
+GHashTable *
yahoo_get_account_text_table(PurpleAccount *account)
{
GHashTable *table;
@@ -5069,186 +5069,3 @@ yahoo_get_account_text_table(PurpleAccou
return table;
}
-static PurpleWhiteboardPrplOps yahoo_whiteboard_prpl_ops =
-{
- yahoo_doodle_start,
- yahoo_doodle_end,
- yahoo_doodle_get_dimensions,
- NULL,
- yahoo_doodle_get_brush,
- yahoo_doodle_set_brush,
- yahoo_doodle_send_draw_list,
- yahoo_doodle_clear,
-
- /* padding */
- NULL,
- NULL,
- NULL,
- NULL
-};
-
-static PurplePluginProtocolInfo prpl_info =
-{
- OPT_PROTO_MAIL_CHECK | OPT_PROTO_CHAT_TOPIC,
- NULL, /* user_splits */
- NULL, /* protocol_options */
- {"png,gif,jpeg", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND},
- yahoo_list_icon,
- yahoo_list_emblem,
- yahoo_status_text,
- yahoo_tooltip_text,
- yahoo_status_types,
- yahoo_blist_node_menu,
- yahoo_c_info,
- yahoo_c_info_defaults,
- yahoo_login,
- yahoo_close,
- yahoo_send_im,
- NULL, /* set info */
- yahoo_send_typing,
- yahoo_get_info,
- yahoo_set_status,
- yahoo_set_idle,
- NULL, /* change_passwd*/
- yahoo_add_buddy,
- NULL, /* add_buddies */
- yahoo_remove_buddy,
- NULL, /* remove_buddies */
- NULL, /* add_permit */
- yahoo_add_deny,
- NULL, /* rem_permit */
- yahoo_rem_deny,
- yahoo_set_permit_deny,
- yahoo_c_join,
- NULL, /* reject chat invite */
- yahoo_get_chat_name,
- yahoo_c_invite,
- yahoo_c_leave,
- NULL, /* chat whisper */
- yahoo_c_send,
- yahoo_keepalive,
- NULL, /* register_user */
- NULL, /* get_cb_info */
- NULL, /* get_cb_away */
- yahoo_update_alias, /* alias_buddy */
- yahoo_change_buddys_group,
- yahoo_rename_group,
- NULL, /* buddy_free */
- NULL, /* convo_closed */
- purple_normalize_nocase, /* normalize */
- yahoo_set_buddy_icon,
- NULL, /* void (*remove_group)(PurpleConnection *gc, const char *group);*/
- NULL, /* char *(*get_cb_real_name)(PurpleConnection *gc, int id, const char *who); */
- NULL, /* set_chat_topic */
- NULL, /* find_blist_chat */
- yahoo_roomlist_get_list,
- yahoo_roomlist_cancel,
- yahoo_roomlist_expand_category,
- NULL, /* can_receive_file */
- yahoo_send_file,
- yahoo_new_xfer,
- yahoo_offline_message, /* offline_message */
- &yahoo_whiteboard_prpl_ops,
- NULL, /* send_raw */
- NULL, /* roomlist_room_serialize */
- NULL, /* unregister_user */
-
- yahoo_send_attention,
- yahoo_attention_types,
-
- sizeof(PurplePluginProtocolInfo), /* struct_size */
- yahoo_get_account_text_table, /* get_account_text_table */
- NULL, /* initiate_media */
- NULL /* can_do_media */
-};
-
-static PurplePluginInfo info =
-{
- PURPLE_PLUGIN_MAGIC,
- PURPLE_MAJOR_VERSION,
- PURPLE_MINOR_VERSION,
- PURPLE_PLUGIN_PROTOCOL, /**< type */
- NULL, /**< ui_requirement */
- 0, /**< flags */
- NULL, /**< dependencies */
- PURPLE_PRIORITY_DEFAULT, /**< priority */
- "prpl-yahoo", /**< id */
- "Yahoo", /**< name */
- DISPLAY_VERSION, /**< version */
- /** summary */
- N_("Yahoo Protocol Plugin"),
- /** description */
- N_("Yahoo Protocol Plugin"),
- NULL, /**< author */
- PURPLE_WEBSITE, /**< homepage */
- NULL, /**< load */
- yahoo_unload_plugin, /**< unload */
- NULL, /**< destroy */
- NULL, /**< ui_info */
- &prpl_info, /**< extra_info */
- NULL,
- yahoo_actions,
-
- /* padding */
- NULL,
- NULL,
- NULL,
- NULL
-};
-
-static void
-init_plugin(PurplePlugin *plugin)
-{
- PurpleAccountOption *option;
-
- option = purple_account_option_bool_new(_("Yahoo Japan"), "yahoojp", FALSE);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_string_new(_("Pager server"), "server", YAHOO_PAGER_HOST);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_string_new(_("Japan Pager server"), "serverjp", YAHOOJP_PAGER_HOST);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_int_new(_("Pager port"), "port", YAHOO_PAGER_PORT);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_string_new(_("File transfer server"), "xfer_host", YAHOO_XFER_HOST);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_string_new(_("Japan file transfer server"), "xferjp_host", YAHOOJP_XFER_HOST);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_int_new(_("File transfer port"), "xfer_port", YAHOO_XFER_PORT);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_string_new(_("Chat room locale"), "room_list_locale", YAHOO_ROOMLIST_LOCALE);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_bool_new(_("Ignore conference and chatroom invitations"), "ignore_invites", FALSE);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_string_new(_("Encoding"), "local_charset", "ISO-8859-1");
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
-
-#if 0
- option = purple_account_option_string_new(_("Chat room list URL"), "room_list", YAHOO_ROOMLIST_URL);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_string_new(_("Yahoo Chat server"), "ycht-server", YAHOO_YCHT_HOST);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-
- option = purple_account_option_int_new(_("Yahoo Chat port"), "ycht-port", YAHOO_YCHT_PORT);
- prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
-#endif
-
- my_protocol = plugin;
- yahoopurple_register_commands();
- yahoo_init_colorht();
-
- purple_signal_connect(purple_get_core(), "uri-handler", plugin,
- PURPLE_CALLBACK(yahoo_uri_handler), NULL);
-}
-
-PURPLE_INIT_PLUGIN(yahoo, init_plugin, info);
More information about the Commits
mailing list