Changeset bedad20


Ignore:
Timestamp:
2010-11-24T22:32:12Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b11b781
Parents:
9564e55
Message:

Some polishing/documentation for the "account add" without password hack.

Files:
3 edited

Legend:

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

    r9564e55 rbedad20  
    1717
    1818                <bitlbee-command name="add">
    19                         <syntax>account add &lt;protocol&gt; &lt;username&gt; &lt;password&gt;</syntax>
     19                        <syntax>account add &lt;protocol&gt; &lt;username&gt; [&lt;password&gt;]</syntax>
    2020
    2121                        <description>
     
    2323                                        Adds an account on the given server with the specified protocol, username and password to the account list. Supported protocols right now are: Jabber, MSN, OSCAR (AIM/ICQ), Yahoo and Twitter. For more information about adding an account, see <emphasis>help account add &lt;protocol&gt;</emphasis>.
    2424                                </para>
     25
     26                                <para>
     27                                        If you omit the password, you should use the IRC /OPER command to enter it separately. The advantage of this approach is that most IRC clients will not show OPER passwords on screen/save them in logs.
     28                                </para>
    2529                        </description>
    2630                       
    2731                        <bitlbee-command name="jabber">
    28                                 <syntax>account add jabber &lt;handle@server.tld&gt; &lt;password&gt;</syntax>
     32                                <syntax>account add jabber &lt;handle@server.tld&gt; [&lt;password&gt;]</syntax>
    2933
    3034                                <description>
     
    4044
    4145                        <bitlbee-command name="msn">
    42                                 <syntax>account add msn &lt;handle@server.tld&gt; &lt;password&gt;</syntax>
     46                                <syntax>account add msn &lt;handle@server.tld&gt; [&lt;password&gt;]</syntax>
    4347
    4448                                <description>
     
    5054                       
    5155                        <bitlbee-command name="oscar">
    52                                 <syntax>account add oscar &lt;handle&gt; &lt;password&gt;</syntax>
     56                                <syntax>account add oscar &lt;handle&gt; [&lt;password&gt;]</syntax>
    5357
    5458                                <description>
     
    6569                       
    6670                        <bitlbee-command name="twitter">
    67                                 <syntax>account add twitter &lt;handle&gt; &lt;password&gt;</syntax>
     71                                <syntax>account add twitter &lt;handle&gt; [&lt;password&gt;]</syntax>
    6872
    6973                                <description>
     
    8791
    8892                        <bitlbee-command name="yahoo">
    89                                 <syntax>account add yahoo &lt;handle&gt; &lt;password&gt;</syntax>
     93                                <syntax>account add yahoo &lt;handle&gt; [&lt;password&gt;]</syntax>
    9094
    9195                                <description>
  • irc_commands.c

    r9564e55 rbedad20  
    409409                {
    410410                        set_setstr( &a->set, "password", cmd[2] );
     411                        irc_usermsg( irc, "Password added to IM account "
     412                                     "%s(%s)", a->prpl->name, a->user );
     413                        /* The IRC client may expect this. Report failure since
     414                           we didn't hand out a +o. */
     415                        irc_send_num( irc, 491, ":Password added to IM account "
     416                                      "%s(%s)", a->prpl->name, a->user );
    411417                        return;
    412418                }
     
    422428        else
    423429        {
    424                 irc_send_num( irc, 432, ":Incorrect password" );
     430                irc_send_num( irc, 491, ":Incorrect password" );
    425431        }
    426432}
  • root_commands.c

    r9564e55 rbedad20  
    427427                }
    428428               
    429                 irc_usermsg( irc, "Account successfully added" );
    430                
    431                 if( cmd[4] == NULL )
    432                         irc_usermsg( irc, "Now, use /OPER to enter your password for this account" );
     429                irc_usermsg( irc, "Account successfully added%s", cmd[4] ? "" :
     430                             ", now use /OPER to enter the password" );
    433431               
    434432                return;
Note: See TracChangeset for help on using the changeset viewer.