Changeset a87754b for protocols


Ignore:
Timestamp:
2010-05-08T01:02:12Z (14 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..

Location:
protocols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee.h

    re4816ea ra87754b  
    126126static int remove_chat_buddy_silent( struct groupchat *b, const char *handle );
    127127#endif
     128int bee_chat_msg( bee_t *bee, struct groupchat *c, const char *msg, int flags );
    128129
    129130#endif /* __BEE_H__ */
  • 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.