Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r3064ea4 r7adc657  
    2929#include "bitlbee.h"
    3030#include "help.h"
    31 #include "otr.h"
    3231
    3332#include <string.h>
     
    242241               
    243242                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                 }
    248243        }
    249244        else if( g_strcasecmp( cmd[1], "del" ) == 0 )
     
    454449        {
    455450                add_on_server = 0;
    456                 cmd ++;         /* So evil... :-D */
     451                cmd ++;
    457452        }
    458453       
     
    486481        }
    487482       
    488         /* By making this optional, you can talk to people without having to
    489            add them to your *real* (server-side) contact list. */
    490483        if( add_on_server )
    491484                a->ic->acc->prpl->add_buddy( a->ic, cmd[2], NULL );
    492        
    493         /* add_buddy( a->ic, NULL, cmd[2], cmd[2] ); */
     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 );
    494490       
    495491        irc_usermsg( irc, "Adding `%s' to your contact list", cmd[2]  );
     
    996992        { "qlist",          0, cmd_qlist,          0 },
    997993        { "join_chat",      2, cmd_join_chat,      0 },
    998         { "otr",            1, cmd_otr,            0 },
    999994        { NULL }
    1000995};
Note: See TracChangeset for help on using the changeset viewer.