Changeset fc5d06d
- Timestamp:
- 2007-12-02T17:27:46Z (17 years ago)
- Branches:
- master
- Children:
- 80e9db9
- Parents:
- 5bd21df (diff), 94d52d64 (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
r5bd21df rfc5d06d 320 320 } 321 321 322 if( ( cs = set_getstr( &irc->set, "charset" ) ) && ( g_strcasecmp( cs, "utf-8" ) != 0 ))322 if( ( cs = set_getstr( &irc->set, "charset" ) ) ) 323 323 { 324 324 conv[IRC_MAX_LINE] = 0; 325 if( do_iconv( cs, "UTF-8", lines[i], conv, 0, IRC_MAX_LINE - 2 ) != -1 ) 326 lines[i] = conv; 325 if( do_iconv( cs, "UTF-8", lines[i], conv, 0, IRC_MAX_LINE - 2 ) == -1 ) 326 { 327 if( irc->status & USTATUS_LOGGED_IN ) 328 irc_usermsg( irc, "ERROR: Charset mismatch detected. The charset " 329 "setting is currently set to %s, so please make " 330 "sure your IRC client will send and accept text in " 331 "that charset, or tell BitlBee which charset to " 332 "expect by changing the charset setting. See " 333 "`help set charset' for more information. Your " 334 "message was ignored.", cs ); 335 *conv = 0; 336 } 337 lines[i] = conv; 327 338 } 328 339
Note: See TracChangeset
for help on using the changeset viewer.