- Timestamp:
- 2005-11-18T12:41:58Z (19 years ago)
- Branches:
- master
- Children:
- 517ecc4
- Parents:
- 2dff6f7
- Location:
- protocols
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
r2dff6f7 rc572dd6 247 247 msg = text; 248 248 249 /* if( g_strcasecmp( set_getstr(gc->irc, "html" ), "strip" ) == 0 ) */250 if( gc->flags & OPT_CONN_HTML)249 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) || 250 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) ) 251 251 strip_html( msg ); 252 252 … … 637 637 } 638 638 639 /* if( g_strcasecmp( set_getstr( irc, "html" ), "strip" ) == 0 ) */640 if( gc->flags & OPT_CONN_HTML)639 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) || 640 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) ) 641 641 strip_html( msg ); 642 642 … … 737 737 for( c = gc->conversations; c && c->id != id; c = c->next ); 738 738 739 /* if( g_strcasecmp( set_getstr( gc->irc, "html" ), "strip" ) == 0 ) */740 if( gc->flags & OPT_CONN_HTML)739 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) || 740 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) ) 741 741 strip_html( msg ); 742 742 … … 970 970 msg = buf; 971 971 972 if( u->gc->flags & OPT_CONN_HTML) { 973 char * html = escape_html(msg); 974 strncpy(buf, html, 8192); 975 g_free(html); 972 if( ( u->gc->flags & OPT_CONN_HTML ) && ( g_strncasecmp( msg, "<html>", 6 ) != 0 ) ) 973 { 974 char *html; 975 976 html = escape_html( msg ); 977 strncpy( buf, html, 8192 ); 978 g_free( html ); 979 980 msg = buf; 976 981 } 977 982 -
protocols/util.c
r2dff6f7 rc572dd6 377 377 if( html == NULL ) 378 378 return( NULL ); 379 if( g_strncasecmp( html, "<html>", 6 ) == 0 )380 return( g_strdup( html ) );381 379 382 380 ret = g_string_new( "" ); -
protocols/yahoo/yahoo.c
r2dff6f7 rc572dd6 851 851 if( c ) 852 852 add_chat_buddy( c, who ); 853 else if( set_getint( gc->irc, "debug" ) )854 serv_got_crap( gc, "Got ext_yahoo_conf_userjoin() from %s for unknown conference %s", who, room );855 853 } 856 854 … … 864 862 if( c ) 865 863 remove_chat_buddy( c, who, "" ); 866 else if( set_getint( gc->irc, "debug" ) )867 serv_got_crap( gc, "Got ext_yahoo_conf_userleave() from %s for unknown conference %s", who, room );868 864 } 869 865
Note: See TracChangeset
for help on using the changeset viewer.