Changeset 764c7d1 for protocols


Ignore:
Timestamp:
2008-02-03T21:30:03Z (16 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
3c80a9d
Parents:
b5c8a34
Message:

OTR support, first checkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rb5c8a34 r764c7d1  
    630630        char *wrapped;
    631631        user_t *u;
    632        
     632
     633        /* pass the message through OTR */
     634        msg = otr_handle_message(ic, handle, msg);
     635        if(!msg) {
     636                /* this was an internal OTR protocol message */
     637                return;
     638        }
     639
    633640        u = user_findhandle( ic, handle );
    634        
    635641        if( !u )
    636642        {
     
    642648                                imcb_log( ic, "Ignoring message from unknown handle %s", handle );
    643649                       
     650                        g_free(msg);
    644651                        return;
    645652                }
     
    674681        irc_msgfrom( irc, u->nick, wrapped );
    675682        g_free( wrapped );
     683        g_free( msg );
    676684}
    677685
     
    991999                msg = buf;
    9921000        }
    993        
    994         st = ic->acc->prpl->buddy_msg( ic, handle, msg, flags );
    995         g_free( buf );
    996        
     1001
     1002        /* if compiled without otr support, this just calls the prpl buddy_msg */
     1003        st = otr_send_message(ic, handle, msg, flags);
     1004       
     1005        g_free(buf);
    9971006        return st;
    9981007}
Note: See TracChangeset for help on using the changeset viewer.