Changeset 12c35df for functions.c


Ignore:
Timestamp:
Oct 28, 2003, 7:56:35 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:
cee1f25
Parents:
faf71b5
Message:
Fixed replies to loopback messages
Fixed smartnarrow on classes/instances with spaces
Don't allow duplicates in command history
Added the 'loggingdirection' variable
All loopback messages log to 'loopback' now
Print an error message if trying an invalid color for a filter
Fixed bug causing > not to go to end of editwin every time
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r995eb4b r12c35df  
    18831883    if (owl_message_is_type_admin(m)) {
    18841884      owl_function_error("You cannot reply to an admin message");
     1885      return;
     1886    }
     1887
     1888    /* loopback */
     1889    if (owl_message_is_type_loopback(m)) {
     1890      owl_function_loopwrite_setup();
    18851891      return;
    18861892    }
     
    22682274      return;
    22692275    }
     2276    if (owl_util_string_to_color(argv[3])==-1) {
     2277      owl_function_error("The color '%s' is not available.", argv[3]);
     2278      return;
     2279    }
    22702280    owl_filter_set_color(f, owl_util_string_to_color(argv[3]));
    22712281    owl_global_set_needrefresh(&g);
     
    24052415  argbuff=owl_malloc(len+20);
    24062416  tmpclass=owl_text_quote(class, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
     2417  owl_text_tr(tmpclass, ' ', '.');
    24072418  if (instance) {
    24082419    tmpinstance=owl_text_quote(instance, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
     2420    owl_text_tr(tmpinstance, ' ', '.');
    24092421  }
    24102422  sprintf(argbuff, "( class ^%s$ )", tmpclass);
     
    27072719
    27082720  /* deal with the case of trying change the filter color */
     2721  if (owl_util_string_to_color(color)==-1) {
     2722    owl_function_error("No color named '%s' avilable.");
     2723    return;
     2724  }
    27092725  owl_filter_set_color(f, owl_util_string_to_color(color));
    27102726  owl_global_set_needrefresh(&g);
Note: See TracChangeset for help on using the changeset viewer.