Changeset 3abf28b for owl.c


Ignore:
Timestamp:
Jun 1, 2003, 9:11:25 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
75e3879
Parents:
df0d93a
Message:
make smartnarrow work for AIM
  (though it will crash on names with spaces)
don't set an away message by default
better default format
bold them like personal zephyrs
same with terminal bell
do some basic HTML stripping (buggy, in progress)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r31e48a3 r3abf28b  
    138138
    139139  /* setup the default filters */
    140   f=malloc(sizeof(owl_filter));
    141   owl_filter_init_fromstring(f, "personal", "class ^message$ and instance ^personal$ and ( recipient ^%me%$ or sender ^%me%$ )");
     140
     141  /* the personal filter will need to change again when AIM chat's are
     142   *  included.  Also, there should be an %aimme% */
     143  f=malloc(sizeof(owl_filter));
     144  owl_filter_init_fromstring(f, "personal", "( type ^zephyr$ "
     145                             "and class ^message$ and instance ^personal$ "
     146                             "and ( recipient ^%me%$ or sender ^%me%$ ) ) "
     147                             "or ( type ^aim$ )");
    142148  owl_list_append_element(owl_global_get_filterlist(&g), f);
    143149
     
    330336
    331337      /* ring the bell if it's a personal */
    332       if (owl_global_is_personalbell(&g) && owl_message_is_personal(m)) {
     338      if (owl_global_is_personalbell(&g) &&
     339          (owl_message_is_personal(m) ||
     340          (owl_message_is_type_aim(m) && owl_message_is_to_me(m)))) {
    333341        owl_function_beep();
    334342      }
Note: See TracChangeset for help on using the changeset viewer.