Changeset c4bc92a


Ignore:
Timestamp:
2010-03-30T00:26:11Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9bf2481, e3413cc
Parents:
545d7c0
Message:

Suppress empty "Headline:" messages for certain new XMPP broadcast messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/message.c

    r545d7c0 rc4bc92a  
    8080                if( type && strcmp( type, "headline" ) == 0 )
    8181                {
    82                         c = xt_find_node( node->children, "subject" );
    83                         g_string_append_printf( fullmsg, "Headline: %s\n", c && c->text_len > 0 ? c->text : "" );
     82                        if( ( c = xt_find_node( node->children, "subject" ) ) && c->text_len > 0 )
     83                                g_string_append_printf( fullmsg, "Headline: %s\n", c->text );
    8484                       
    8585                        /* <x xmlns="jabber:x:oob"><url>http://....</url></x> can contain a URL, it seems. */
Note: See TracChangeset for help on using the changeset viewer.