- Timestamp:
- 2008-02-15T17:38:57Z (16 years ago)
- Branches:
- master
- Children:
- 506e61b
- Parents:
- 0fbd3a6d (diff), eeb85a8 (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
r0fbd3a6d r1ba7e8f 78 78 79 79 if( getnameinfo( (struct sockaddr *) &sock, socklen, buf, 80 NI_MAXHOST, NULL, -1, 0 ) == 0 )80 NI_MAXHOST, NULL, 0, 0 ) == 0 ) 81 81 { 82 82 irc->myhost = g_strdup( ipv6_unwrap( buf ) ); … … 89 89 90 90 if( getnameinfo( (struct sockaddr *)&sock, socklen, buf, 91 NI_MAXHOST, NULL, -1, 0 ) == 0 )91 NI_MAXHOST, NULL, 0, 0 ) == 0 ) 92 92 { 93 93 irc->host = g_strdup( ipv6_unwrap( buf ) ); … … 193 193 account_t *account; 194 194 user_t *user, *usertmp; 195 help_t *helpnode, *helpnodetmp;196 195 197 196 log_message( LOGLVL_INFO, "Destroying connection with fd %d", irc->fd ); … … 270 269 g_hash_table_destroy(irc->watches); 271 270 272 if (irc->help != NULL) {273 helpnode = irc->help;274 while (helpnode != NULL) {275 g_free(helpnode->string);276 277 helpnodetmp = helpnode;278 helpnode = helpnode->next;279 g_free(helpnodetmp);280 }281 }282 271 g_free(irc); 283 272 … … 329 318 if( do_iconv( cs, "UTF-8", lines[i], conv, 0, IRC_MAX_LINE - 2 ) == -1 ) 330 319 { 320 /* GLib can do strange things if things are not in the expected charset, 321 so let's be a little bit paranoid here: */ 331 322 if( irc->status & USTATUS_LOGGED_IN ) 332 irc_usermsg( irc, "ERROR: Charset mismatch detected. The charset " 323 { 324 irc_usermsg( irc, "Error: Charset mismatch detected. The charset " 333 325 "setting is currently set to %s, so please make " 334 326 "sure your IRC client will send and accept text in " … … 337 329 "`help set charset' for more information. Your " 338 330 "message was ignored.", cs ); 339 *conv = 0; 331 *conv = 0; 332 } 333 else 334 { 335 irc_write( irc, ":%s NOTICE AUTH :%s", irc->myhost, 336 "Warning: invalid (non-UTF8) characters received at login time." ); 337 338 strncpy( conv, lines[i], IRC_MAX_LINE ); 339 for( temp = conv; *temp; temp ++ ) 340 if( *temp & 0x80 ) 341 *temp = '?'; 342 } 340 343 } 341 344 lines[i] = conv;
Note: See TracChangeset
for help on using the changeset viewer.