Changeset d250b2a


Ignore:
Timestamp:
2009-10-06T22:26:01Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
389f7be
Parents:
7da726b
Message:

Receive messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r7da726b rd250b2a  
    210210static void prplcb_conn_connected( PurpleConnection *gc )
    211211{
    212         imcb_connected( purple_ic_by_gc( gc ) );
     212        struct im_connection *ic = purple_ic_by_gc( gc );
     213       
     214        imcb_connected( ic );
     215       
     216        if( gc->flags & PURPLE_CONNECTION_HTML )
     217                ic->flags |= OPT_DOES_HTML;
    213218}
    214219
     
    284289};
    285290
     291static void prplcb_conv_im( PurpleConversation *conv, const char *who, const char *message, PurpleMessageFlags flags, time_t mtime )
     292{
     293        struct im_connection *ic = purple_ic_by_pa( conv->account );
     294       
     295        imcb_buddy_msg( ic, (char*) who, (char*) message, 0, mtime );
     296}
     297
    286298static PurpleConversationUiOps bee_conv_uiops =
    287299{
     
    289301        NULL,                      /* destroy_conversation */
    290302        NULL,                      /* write_chat           */
    291         NULL,                      /* write_im             */
     303        prplcb_conv_im,            /* write_im             */
    292304        NULL, //null_write_conv,           /* write_conv           */
    293305        NULL,                      /* chat_add_users       */
Note: See TracChangeset for help on using the changeset viewer.