Changeset 601e813 for query.c


Ignore:
Timestamp:
2006-05-24T23:04:18Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
80c1e4d
Parents:
46ad029 (diff), fc630f9 (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.
Message:

[merge] Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • query.c

    r46ad029 r601e813  
    3939        q->no = no;
    4040        q->data = data;
     41       
     42        if( strchr( irc->umode, 'b' ) != NULL )
     43        {
     44                char *s;
     45               
     46                /* At least for the machine-parseable version, get rid of
     47                   newlines to make "parsing" easier. */
     48                for( s = q->question; *s; s ++ )
     49                        if( *s == '\r' || *s == '\n' )
     50                                *s = ' ';
     51        }
    4152       
    4253        if( irc->queries )
     
    127138                disp = 1;
    128139        }
    129         //Using irc_usermsg instead of serv_got_crap because \x02A is a char too, so a SPACE is needed.
    130140        if( ans )
    131141        {
     142                serv_got_crap( q->gc, "Accepted: %s", q->question );
    132143                q->yes( NULL, q->data );
    133                 serv_got_crap( q->gc, "Accepted: %s", q->question );
    134144        }
    135145        else
    136146        {
     147                serv_got_crap( q->gc, "Rejected: %s", q->question );
    137148                q->no( NULL, q->data );
    138                 serv_got_crap( q->gc, "Rejected: %s", q->question );
    139149        }
    140150        q->data = NULL;
Note: See TracChangeset for help on using the changeset viewer.