Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r7adc657 r3064ea4  
    2929#include "bitlbee.h"
    3030#include "help.h"
     31#include "otr.h"
    3132
    3233#include <string.h>
     
    241242               
    242243                irc_usermsg( irc, "Account successfully added" );
     244               
     245                if(otr_check_for_key(a)) {
     246                        irc_usermsg(irc, "otr: you will be notified when it completes");
     247                }
    243248        }
    244249        else if( g_strcasecmp( cmd[1], "del" ) == 0 )
     
    449454        {
    450455                add_on_server = 0;
    451                 cmd ++;
     456                cmd ++;         /* So evil... :-D */
    452457        }
    453458       
     
    481486        }
    482487       
     488        /* By making this optional, you can talk to people without having to
     489           add them to your *real* (server-side) contact list. */
    483490        if( add_on_server )
    484491                a->ic->acc->prpl->add_buddy( a->ic, cmd[2], NULL );
    485         else
    486                 /* Yeah, officially this is a call-*back*... So if we just
    487                    called add_buddy, we'll wait for the IM server to respond
    488                    before we do this. */
    489                 imcb_add_buddy( a->ic, cmd[2], NULL );
     492       
     493        /* add_buddy( a->ic, NULL, cmd[2], cmd[2] ); */
    490494       
    491495        irc_usermsg( irc, "Adding `%s' to your contact list", cmd[2]  );
     
    992996        { "qlist",          0, cmd_qlist,          0 },
    993997        { "join_chat",      2, cmd_join_chat,      0 },
     998        { "otr",            1, cmd_otr,            0 },
    994999        { NULL }
    9951000};
Note: See TracChangeset for help on using the changeset viewer.