~ubuntu-branches/ubuntu/trusty/irssi-plugin-xmpp/trusty

« back to all changes in this revision

Viewing changes to src/core/xmpp-commands.c

  • Committer: Bazaar Package Importer
  • Author(s): David Ammouial
  • Date: 2009-06-19 23:14:39 UTC
  • mfrom: (1.1.4 upstream) (2.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090619231439-xmcr03qdpzswarvi
Tags: 0.13+cvs20090617-1
* New CVS snapshot:
  - Some bugfixes and code cleanup.
  - Allow to build on ia64 (Closes: #530304).
* Bump Standards-Version to 3.8.2 (no changes). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: xmpp-commands.c,v 1.56 2008/12/06 18:33:38 cdidier Exp $
 
2
 * $Id: xmpp-commands.c,v 1.57 2009/06/03 16:47:29 cdidier Exp $
3
3
 *
4
4
 * Copyright (C) 2007 Colin DIDIER
5
5
 *
215
215
        gboolean oldvalue;
216
216
 
217
217
        CMD_XMPP_SERVER(server);
218
 
        oldvalue = settings_get_bool("roster_show_offline");
 
218
        oldvalue = settings_get_bool("xmpp_roster_show_offline");
219
219
        if (!oldvalue)
220
 
                settings_set_bool("roster_show_offline", TRUE);
 
220
                settings_set_bool("xmpp_roster_show_offline", TRUE);
221
221
        signal_emit("xmpp roster show", 1, server);
222
222
        if (!oldvalue)
223
 
                settings_set_bool("roster_show_offline", oldvalue);
 
223
                settings_set_bool("xmpp_roster_show_offline", oldvalue);
224
224
}
225
225
 
226
226
/* SYNTAX: ROSTER ADD <jid> */
247
247
        lm_message_node_set_attribute(item_node, "jid", jid_recoded);
248
248
        signal_emit("xmpp send iq", 2, server, lmsg);
249
249
        lm_message_unref(lmsg);
250
 
        if (settings_get_bool("roster_add_send_subscribe")) {
 
250
        if (settings_get_bool("xmpp_roster_add_send_subscribe")) {
251
251
                lmsg = lm_message_new_with_sub_type(jid_recoded,
252
252
                    LM_MESSAGE_TYPE_PRESENCE, LM_MESSAGE_SUB_TYPE_SUBSCRIBE);
253
253
                signal_emit("xmpp send presence", 2, server, lmsg);
573
573
            (SIGNAL_FUNC)cmd_presence_unsubscribe);
574
574
        command_bind_xmpp("me", NULL, (SIGNAL_FUNC)cmd_me);
575
575
        settings_add_str("xmpp", "xmpp_default_away_mode", "away");
576
 
        settings_add_bool("xmpp_roster", "roster_add_send_subscribe", TRUE);
 
576
        settings_add_bool("xmpp_roster", "xmpp_roster_add_send_subscribe", TRUE);
577
577
}
578
578
 
579
579
void