- Timestamp:
- 2007-12-05T01:30:50Z (16 years ago)
- Branches:
- master
- Children:
- dc0ba9c
- Parents:
- dce3903 (diff), 793cc25 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rdce3903 r8076ec0 324 324 } 325 325 326 if( ( cs = set_getstr( &irc->set, "charset" ) ) && ( g_strcasecmp( cs, "utf-8" ) != 0 ))326 if( ( cs = set_getstr( &irc->set, "charset" ) ) ) 327 327 { 328 328 conv[IRC_MAX_LINE] = 0; 329 if( do_iconv( cs, "UTF-8", lines[i], conv, 0, IRC_MAX_LINE - 2 ) != -1 ) 330 lines[i] = conv; 329 if( do_iconv( cs, "UTF-8", lines[i], conv, 0, IRC_MAX_LINE - 2 ) == -1 ) 330 { 331 if( irc->status & USTATUS_LOGGED_IN ) 332 irc_usermsg( irc, "ERROR: Charset mismatch detected. The charset " 333 "setting is currently set to %s, so please make " 334 "sure your IRC client will send and accept text in " 335 "that charset, or tell BitlBee which charset to " 336 "expect by changing the charset setting. See " 337 "`help set charset' for more information. Your " 338 "message was ignored.", cs ); 339 *conv = 0; 340 } 341 lines[i] = conv; 331 342 } 332 343
Note: See TracChangeset
for help on using the changeset viewer.