Changeset 81655f8 for filterelement.c


Ignore:
Timestamp:
May 12, 2008, 8:01:58 PM (16 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
9f4e3f8
Parents:
6b3878b
Message:
* filterelement.c - quote regexp filter elements with spaces in them.
* functions.c - deal with smart-narrowing when the user's screenname has spaces in it.
* owl.h - add a new struct member to the global to hold an escaped aim screenname.
* global.c - populate the aforementioned new struct member.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filterelement.c

    raf1920fd r81655f8  
    138138static void owl_filterelement_print_re(owl_filterelement *fe, char *buf)
    139139{
     140  char *re, *q;
    140141  strcat(buf, fe->field);
    141142  strcat(buf, " ");
    142   strcat(buf, owl_regex_get_string(&(fe->re)));
     143
     144  re = owl_regex_get_string(&(fe->re));
     145  q = owl_getquoting(re);
     146  strcat(buf, q);
     147  strcat(buf, re);
     148  strcat(buf, q);
    143149}
    144150
Note: See TracChangeset for help on using the changeset viewer.