Changeset 2cdd8ce for protocols/nogaim.c
- Timestamp:
- 2005-11-19T15:17:03Z (18 years ago)
- Branches:
- master
- Children:
- 9c8ae50, b20b32f
- Parents:
- c998255 (diff), 94281ef (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
-
protocols/nogaim.c
rc998255 r2cdd8ce 184 184 gc->prpl->set_away( gc, s, away ); 185 185 if( set_getint( gc->irc, "debug" ) ) 186 irc_usermsg( gc->irc, "Setting away state for %s to %s", gc->prpl->name, s );186 serv_got_crap( gc, "Setting away state to %s", s ); 187 187 } 188 188 else … … 277 277 void set_login_progress( struct gaim_connection *gc, int step, char *msg ) 278 278 { 279 irc_usermsg( gc->irc, "%s(%s) - Logging in: %s", gc->prpl->name, gc->username, msg );279 serv_got_crap( gc, "Logging in: %s", msg ); 280 280 } 281 281 … … 283 283 void hide_login_progress( struct gaim_connection *gc, char *msg ) 284 284 { 285 irc_usermsg( gc->irc, "%s(%s) - Login error: %s", gc->prpl->name, gc->username, msg );285 serv_got_crap( gc, "Login error: %s", msg ); 286 286 } 287 287 … … 289 289 void hide_login_progress_error( struct gaim_connection *gc, char *msg ) 290 290 { 291 irc_usermsg( gc->irc, "%s(%s) - Logged out: %s", gc->prpl->name, gc->username, msg );291 serv_got_crap( gc, "Logged out: %s", msg ); 292 292 } 293 293 … … 308 308 msg = text; 309 309 310 /* if( g_strcasecmp( set_getstr(gc->irc, "html" ), "strip" ) == 0 ) */311 if( gc->flags & OPT_CONN_HTML)310 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) || 311 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) ) 312 312 strip_html( msg ); 313 313 … … 337 337 u = user_find( gc->irc, gc->irc->nick ); 338 338 339 irc_usermsg( gc->irc, "%s(%s) - Logged in", gc->prpl->name, gc->username);339 serv_got_crap( gc, "Logged in" ); 340 340 341 341 gc->keepalive = g_timeout_add( 60000, send_keepalive, gc ); … … 351 351 352 352 if( u == NULL ) 353 irc_usermsg( gc->irc, "\x02""***\x02"" BitlBee now supports ICQ server-side contact lists. "353 serv_got_crap( gc, "\x02""***\x02"" BitlBee now supports ICQ server-side contact lists. " 354 354 "See \x02""help import_buddies\x02"" for more information." ); 355 355 } … … 384 384 account_t *a; 385 385 386 irc_usermsg( gc->irc, "%s(%s) - Signing off..", gc->prpl->name, gc->username);386 serv_got_crap( gc, "Signing off.." ); 387 387 388 388 gaim_input_remove( gc->keepalive ); … … 416 416 { 417 417 int delay = set_getint( irc, "auto_reconnect_delay" ); 418 irc_usermsg( gc->irc, "%s(%s) - Reconnecting in %d seconds..", gc->prpl->name, gc->username, delay);418 serv_got_crap( gc, "Reconnecting in %d seconds..", delay ); 419 419 420 420 a->reconnect = 1; … … 430 430 void do_error_dialog( struct gaim_connection *gc, char *msg, char *title ) 431 431 { 432 irc_usermsg( gc->irc, "%s(%s) - Error: %s", gc->prpl->name, gc->username, msg );432 serv_got_crap( gc, "Error: %s", msg ); 433 433 } 434 434 … … 459 459 460 460 if( set_getint( irc, "debug" ) && 0 ) /* This message is too useless */ 461 irc_usermsg( irc, "Receiving user add from protocol: %s", handle );461 serv_got_crap( gc, "Receiving user add from handle: %s", handle ); 462 462 463 463 if( user_findhandle( gc, handle ) ) 464 464 { 465 465 if( set_getint( irc, "debug" ) ) 466 irc_usermsg( irc, "User already exists, ignoring add request: %s", handle );466 serv_got_crap( gc, "User already exists, ignoring add request: %s", handle ); 467 467 468 468 return; … … 557 557 558 558 if( ( gc->flags & OPT_LOGGED_IN ) && set_getint( gc->irc, "display_namechanges" ) ) 559 irc_usermsg( gc->irc, "User `%s' changed name to `%s'", u->nick, u->realname );559 serv_got_crap( gc, "User `%s' changed name to `%s'", u->nick, u->realname ); 560 560 } 561 561 } … … 590 590 if( set_getint( gc->irc, "debug" ) || g_strcasecmp( set_getstr( gc->irc, "handle_unknown" ), "ignore" ) != 0 ) 591 591 { 592 irc_usermsg( gc->irc, "serv_got_update() for handle %s on connection %s(%s):", handle, gc->prpl->name, gc->username );593 irc_usermsg( gc->irc, "loggedin = %d, type = %d", loggedin, type );592 serv_got_crap( gc, "serv_got_update() for handle %s:", handle ); 593 serv_got_crap( gc, "loggedin = %d, type = %d", loggedin, type ); 594 594 } 595 595 … … 671 671 { 672 672 if( set_getint( irc, "debug" ) ) 673 irc_usermsg( irc, "Ignoring message from unknown handle %s on connection %s(%s)", handle, gc->prpl->name, gc->username );673 serv_got_crap( gc, "Ignoring message from unknown handle %s", handle ); 674 674 675 675 return; … … 693 693 else 694 694 { 695 irc_usermsg( irc, "Message from unknown handle %s on connection %s(%s):", handle, gc->prpl->name, gc->username );695 serv_got_crap( gc, "Message from unknown handle %s:", handle ); 696 696 u = user_find( irc, irc->mynick ); 697 697 } 698 698 } 699 699 700 /* if( g_strcasecmp( set_getstr( irc, "html" ), "strip" ) == 0 ) */701 if( gc->flags & OPT_CONN_HTML)700 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) || 701 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) ) 702 702 strip_html( msg ); 703 703 … … 753 753 754 754 if( set_getint( gc->irc, "debug" ) ) 755 irc_usermsg( gc->irc, "You were removed from conversation %d", (int) id );755 serv_got_crap( gc, "You were removed from conversation %d", (int) id ); 756 756 757 757 for( c = gc->conversations; c && c->id != id; c = (l=c)->next ); … … 798 798 for( c = gc->conversations; c && c->id != id; c = c->next ); 799 799 800 /* if( g_strcasecmp( set_getstr( gc->irc, "html" ), "strip" ) == 0 ) */801 if( gc->flags & OPT_CONN_HTML)800 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) || 801 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) ) 802 802 strip_html( msg ); 803 803 … … 809 809 irc_privmsg( gc->irc, u, "PRIVMSG", c->channel, "", msg ); 810 810 else 811 irc_usermsg( gc->irc, "Message from/to conversation %s@%d (unknown conv/user): %s", who, id, msg );811 serv_got_crap( gc, "Message from/to conversation %s@%d (unknown conv/user): %s", who, id, msg ); 812 812 } 813 813 … … 832 832 833 833 s = g_new( char, 16 ); 834 sprintf( s, " #chat_%03d", gc->irc->c_id++ );834 sprintf( s, "&chat_%03d", gc->irc->c_id++ ); 835 835 c->channel = g_strdup( s ); 836 836 g_free( s ); 837 837 838 838 if( set_getint( gc->irc, "debug" ) ) 839 irc_usermsg( gc->irc, "Creating new conversation: (id=%d,handle=%s)", id, handle );839 serv_got_crap( gc, "Creating new conversation: (id=%d,handle=%s)", id, handle ); 840 840 841 841 return( c ); … … 856 856 857 857 if( set_getint( b->gc->irc, "debug" ) ) 858 irc_usermsg( b->gc->irc, "User %s added to conversation %d", handle, b->id );858 serv_got_crap( b->gc, "User %s added to conversation %d", handle, b->id ); 859 859 860 860 /* It might be yourself! */ … … 890 890 891 891 if( set_getint( b->gc->irc, "debug" ) ) 892 irc_usermsg( b->gc->irc, "User %s removed from conversation %d (%s)", handle, b->id, reason ? reason : "" );892 serv_got_crap( b->gc, "User %s removed from conversation %d (%s)", handle, b->id, reason ? reason : "" ); 893 893 894 894 /* It might be yourself! */ … … 1031 1031 msg = buf; 1032 1032 1033 if( u->gc->flags & OPT_CONN_HTML) { 1034 char * html = escape_html(msg); 1035 strncpy(buf, html, 8192); 1036 g_free(html); 1033 if( ( u->gc->flags & OPT_CONN_HTML ) && ( g_strncasecmp( msg, "<html>", 6 ) != 0 ) ) 1034 { 1035 char *html; 1036 1037 html = escape_html( msg ); 1038 strncpy( buf, html, 8192 ); 1039 g_free( html ); 1040 1041 msg = buf; 1037 1042 } 1038 1043
Note: See TracChangeset
for help on using the changeset viewer.