Changeset aefa533e for query.c


Ignore:
Timestamp:
2006-03-21T08:12:22Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
19a6c75
Parents:
1ad104a
Message:

Added a special +b usermode for easier parseability of some things.
(For now blist and qlist, but more should come)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • query.c

    r1ad104a raefa533e  
    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        {
Note: See TracChangeset for help on using the changeset viewer.