Changeset a6df0b5


Ignore:
Timestamp:
2007-11-14T23:29:43Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ebb95b6
Parents:
eda54e4
Message:

Added "xmlconsole" setting so it can be enabled at login time already.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/user-guide/commands.xml

    reda54e4 ra6df0b5  
    681681        </bitlbee-setting>
    682682
     683        <bitlbee-setting name="xmlconsole" type="boolean" scope="account">
     684                <default>false</default>
     685
     686                <description>
     687                        <para>
     688                                The Jabber module allows you to add a buddy <emphasis>xmlconsole</emphasis> to your contact list, which will then show you the raw XMPP stream between you and the server. You can also send XMPP packets to this buddy, which will then be sent to the server.
     689                        </para>
     690                        <para>
     691                                If you want to enable this XML console permanently (and at login time already), you can set this setting.
     692                        </para>
     693                </description>
     694        </bitlbee-setting>
     695
    683696        <bitlbee-command name="rename">
    684697                <short-description>Rename (renick) a buddy</short-description>
  • protocols/jabber/jabber.c

    reda54e4 ra6df0b5  
    5454       
    5555        s = set_add( &acc->set, "tls", "try", set_eval_tls, acc );
     56        s->flags |= ACC_SET_OFFLINE_ONLY;
     57       
     58        s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc );
    5659        s->flags |= ACC_SET_OFFLINE_ONLY;
    5760}
     
    189192                imc_logout( ic, TRUE );
    190193        }
     194       
     195        if( set_getbool( &acc->set, "xmlconsole" ) )
     196        {
     197                jd->flags |= JFLAG_XMLCONSOLE;
     198                /* Shouldn't really do this at this stage already, maybe. But
     199                   I think this shouldn't break anything. */
     200                imcb_add_buddy( ic, JABBER_XMLCONSOLE_HANDLE, NULL );
     201        }
    191202}
    192203
Note: See TracChangeset for help on using the changeset viewer.