comparison src/protocols/jabber/jabber.c @ 10487:659edfcac14e

[gaim-migrate @ 11777] Removed protocol preferences. MSN will display closed conversation messages but not timeouts. Jabber will not display your OS. I left the preferences for OSCAR, but removed them from the UI. OSCAR is complicated because it stores prefs on the server. I'll let Mark figure out a smarter way to handle that. As with all slashed prefs, feel free to voice objections. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 08 Jan 2005 20:30:41 +0000
parents 84bc372a621e
children a3a540ed2518
comparison
equal deleted inserted replaced
10486:84bc372a621e 10487:659edfcac14e
1498 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_PRPL_ONLY, 1498 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_PRPL_ONLY,
1499 "prpl-jabber", jabber_cmd_chat_msg, 1499 "prpl-jabber", jabber_cmd_chat_msg,
1500 _("msg &lt;user&gt; &lt;message&gt;: Send a private message to another user."), 1500 _("msg &lt;user&gt; &lt;message&gt;: Send a private message to another user."),
1501 NULL); 1501 NULL);
1502 } 1502 }
1503
1504 static GaimPluginPrefFrame *
1505 get_plugin_pref_frame(GaimPlugin *plugin) {
1506 GaimPluginPrefFrame *frame;
1507 GaimPluginPref *ppref;
1508
1509 frame = gaim_plugin_pref_frame_new();
1510
1511 ppref = gaim_plugin_pref_new_with_label(_("Privacy"));
1512 gaim_plugin_pref_frame_add(frame, ppref);
1513
1514 ppref = gaim_plugin_pref_new_with_name_and_label("/plugins/prpl/jabber/hide_os",
1515 _("Hide Operating System"));
1516 gaim_plugin_pref_frame_add(frame, ppref);
1517
1518 return frame;
1519 }
1520
1521 static GaimPluginUiInfo prefs_info = {
1522 get_plugin_pref_frame
1523 };
1524 1503
1525 static GaimPluginProtocolInfo prpl_info = 1504 static GaimPluginProtocolInfo prpl_info =
1526 { 1505 {
1527 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME, 1506 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME,
1528 NULL, /* user_splits */ 1507 NULL, /* user_splits */
1609 NULL, /**< unload */ 1588 NULL, /**< unload */
1610 NULL, /**< destroy */ 1589 NULL, /**< destroy */
1611 1590
1612 NULL, /**< ui_info */ 1591 NULL, /**< ui_info */
1613 &prpl_info, /**< extra_info */ 1592 &prpl_info, /**< extra_info */
1614 &prefs_info, /**< prefs_info */ 1593 NULL, /**< prefs_info */
1615 jabber_actions 1594 jabber_actions
1616 }; 1595 };
1617 1596
1618 static void 1597 static void
1619 init_plugin(GaimPlugin *plugin) 1598 init_plugin(GaimPlugin *plugin)
1651 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, 1630 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
1652 option); 1631 option);
1653 1632
1654 my_protocol = plugin; 1633 my_protocol = plugin;
1655 1634
1656 gaim_prefs_add_none("/plugins/prpl/jabber"); 1635 gaim_prefs_remove("/plugins/prpl/jabber");
1657 gaim_prefs_add_bool("/plugins/prpl/jabber/hide_os", FALSE);
1658 1636
1659 jabber_register_commands(); 1637 jabber_register_commands();
1660 } 1638 }
1661 1639
1662 GAIM_INIT_PLUGIN(jabber, init_plugin, info); 1640 GAIM_INIT_PLUGIN(jabber, init_plugin, info);