Ignore:
Timestamp:
2010-05-08T01:02:12Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
bfb99ee
Parents:
e4816ea
Message:

Restored support for outgoing messages. This code is all so much saner now..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee_chat.c

    re4816ea ra87754b  
    247247}
    248248#endif
     249
     250int bee_chat_msg( bee_t *bee, struct groupchat *c, const char *msg, int flags )
     251{
     252        struct im_connection *ic = c->ic;
     253        char *buf = NULL;
     254        int st;
     255       
     256        if( ( ic->flags & OPT_DOES_HTML ) && ( g_strncasecmp( msg, "<html>", 6 ) != 0 ) )
     257        {
     258                buf = escape_html( msg );
     259                msg = buf;
     260        }
     261        else
     262                buf = g_strdup( msg );
     263       
     264        ic->acc->prpl->chat_msg( c, buf, flags );
     265        g_free( buf );
     266       
     267        return 1;
     268}
Note: See TracChangeset for help on using the changeset viewer.