- Timestamp:
- 2006-06-30T09:17:18Z (18 years ago)
- Branches:
- master
- Children:
- 0a3c243
- Parents:
- 1719464
- Location:
- protocols
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
r1719464 r5c9512f 220 220 va_end( params ); 221 221 222 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) ||223 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) )222 if( ( g_strcasecmp( set_getstr( &gc->irc->set, "strip_html" ), "always" ) == 0 ) || 223 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( &gc->irc->set, "strip_html" ) ) ) 224 224 strip_html( text ); 225 225 … … 324 324 /* Uhm... This is very sick. */ 325 325 } 326 else if( !gc->wants_to_die && set_getint( irc, "auto_reconnect" ) )327 { 328 int delay = set_getint( irc, "auto_reconnect_delay" );326 else if( !gc->wants_to_die && set_getint( &irc->set, "auto_reconnect" ) ) 327 { 328 int delay = set_getint( &irc->set, "auto_reconnect_delay" ); 329 329 330 330 serv_got_crap( gc, "Reconnecting in %d seconds..", delay ); … … 365 365 irc_t *irc = gc->irc; 366 366 367 if( set_getint( irc, "debug" ) && 0 ) /* This message is too useless */367 if( set_getint( &irc->set, "debug" ) && 0 ) /* This message is too useless */ 368 368 serv_got_crap( gc, "Receiving user add from handle: %s", handle ); 369 369 370 370 if( user_findhandle( gc, handle ) ) 371 371 { 372 if( set_getint( irc, "debug" ) )372 if( set_getint( &irc->set, "debug" ) ) 373 373 serv_got_crap( gc, "User already exists, ignoring add request: %s", handle ); 374 374 … … 458 458 u->realname = g_strdup( realname ); 459 459 460 if( ( gc->flags & OPT_LOGGED_IN ) && set_getint( gc->irc, "display_namechanges" ) )460 if( ( gc->flags & OPT_LOGGED_IN ) && set_getint( &gc->irc->set, "display_namechanges" ) ) 461 461 serv_got_crap( gc, "User `%s' changed name to `%s'", u->nick, u->realname ); 462 462 } … … 514 514 if( !u ) 515 515 { 516 if( g_strcasecmp( set_getstr( gc->irc, "handle_unknown" ), "add" ) == 0 )516 if( g_strcasecmp( set_getstr( &gc->irc->set, "handle_unknown" ), "add" ) == 0 ) 517 517 { 518 518 add_buddy( gc, NULL, handle, NULL ); … … 521 521 else 522 522 { 523 if( set_getint( gc->irc, "debug" ) || g_strcasecmp( set_getstr( gc->irc, "handle_unknown" ), "ignore" ) != 0 )523 if( set_getint( &gc->irc->set, "debug" ) || g_strcasecmp( set_getstr( &gc->irc->set, "handle_unknown" ), "ignore" ) != 0 ) 524 524 { 525 525 serv_got_crap( gc, "serv_got_update() for handle %s:", handle ); … … 580 580 581 581 /* LISPy... */ 582 if( ( set_getint( gc->irc, "away_devoice" ) ) && /* Don't do a thing when user doesn't want it */582 if( ( set_getint( &gc->irc->set, "away_devoice" ) ) && /* Don't do a thing when user doesn't want it */ 583 583 ( u->online ) && /* Don't touch offline people */ 584 584 ( ( ( u->online != oo ) && !u->away ) || /* Voice joining people */ … … 599 599 if( !u ) 600 600 { 601 char *h = set_getstr( irc, "handle_unknown" );601 char *h = set_getstr( &irc->set, "handle_unknown" ); 602 602 603 603 if( g_strcasecmp( h, "ignore" ) == 0 ) 604 604 { 605 if( set_getint( irc, "debug" ) )605 if( set_getint( &irc->set, "debug" ) ) 606 606 serv_got_crap( gc, "Ignoring message from unknown handle %s", handle ); 607 607 … … 610 610 else if( g_strncasecmp( h, "add", 3 ) == 0 ) 611 611 { 612 int private = set_getint( irc, "private" );612 int private = set_getint( &irc->set, "private" ); 613 613 614 614 if( h[3] ) … … 631 631 } 632 632 633 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) ||634 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) )633 if( ( g_strcasecmp( set_getstr( &gc->irc->set, "strip_html" ), "always" ) == 0 ) || 634 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( &gc->irc->set, "strip_html" ) ) ) 635 635 strip_html( msg ); 636 636 … … 672 672 user_t *u; 673 673 674 if( !set_getint( gc->irc, "typing_notice" ) )674 if( !set_getint( &gc->irc->set, "typing_notice" ) ) 675 675 return; 676 676 … … 694 694 GList *ir; 695 695 696 if( set_getint( gc->irc, "debug" ) )696 if( set_getint( &gc->irc->set, "debug" ) ) 697 697 serv_got_crap( gc, "You were removed from conversation %d", (int) id ); 698 698 … … 739 739 for( c = gc->conversations; c && c->id != id; c = c->next ); 740 740 741 if( ( g_strcasecmp( set_getstr( gc->irc, "strip_html" ), "always" ) == 0 ) ||742 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( gc->irc, "strip_html" ) ) )741 if( ( g_strcasecmp( set_getstr( &gc->irc->set, "strip_html" ), "always" ) == 0 ) || 742 ( ( gc->flags & OPT_CONN_HTML ) && set_getint( &gc->irc->set, "strip_html" ) ) ) 743 743 strip_html( msg ); 744 744 … … 773 773 g_free( s ); 774 774 775 if( set_getint( gc->irc, "debug" ) )775 if( set_getint( &gc->irc->set, "debug" ) ) 776 776 serv_got_crap( gc, "Creating new conversation: (id=%d,handle=%s)", id, handle ); 777 777 … … 787 787 int me = 0; 788 788 789 if( set_getint( b->gc->irc, "debug" ) )789 if( set_getint( &b->gc->irc->set, "debug" ) ) 790 790 serv_got_crap( b->gc, "User %s added to conversation %d", handle, b->id ); 791 791 … … 821 821 int me = 0; 822 822 823 if( set_getint( b->gc->irc, "debug" ) )823 if( set_getint( &b->gc->irc->set, "debug" ) ) 824 824 serv_got_crap( b->gc, "User %s removed from conversation %d (%s)", handle, b->id, reason ? reason : "" ); 825 825 … … 883 883 } 884 884 885 char *set_eval_away_devoice( irc_t *irc, set_t *set, char *value ) 886 { 885 char *set_eval_away_devoice( set_t *set, char *value ) 886 { 887 irc_t *irc = set->data; 887 888 int st; 888 889 … … 898 899 /* Horror.... */ 899 900 900 if( st != set_getint( irc, "away_devoice" ) )901 if( st != set_getint( &irc->set, "away_devoice" ) ) 901 902 { 902 903 char list[80] = ""; … … 938 939 } 939 940 940 return( set_eval_bool( irc,set, value ) );941 return( set_eval_bool( set, value ) ); 941 942 } 942 943 … … 1018 1019 { 1019 1020 gc->prpl->set_away( gc, s, away ); 1020 if( set_getint( gc->irc, "debug" ) )1021 if( set_getint( &gc->irc->set, "debug" ) ) 1021 1022 serv_got_crap( gc, "Setting away state to %s", s ); 1022 1023 } -
protocols/nogaim.h
r1719464 r5c9512f 206 206 207 207 void nogaim_init(); 208 char *set_eval_away_devoice( irc_t *irc,set_t *set, char *value );208 char *set_eval_away_devoice( set_t *set, char *value ); 209 209 210 210 gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond );
Note: See TracChangeset
for help on using the changeset viewer.