Changeset 12c35df for functions.c
- Timestamp:
- Oct 28, 2003, 7:56:35 PM (22 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r995eb4b r12c35df 1883 1883 if (owl_message_is_type_admin(m)) { 1884 1884 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(); 1885 1891 return; 1886 1892 } … … 2268 2274 return; 2269 2275 } 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 } 2270 2280 owl_filter_set_color(f, owl_util_string_to_color(argv[3])); 2271 2281 owl_global_set_needrefresh(&g); … … 2405 2415 argbuff=owl_malloc(len+20); 2406 2416 tmpclass=owl_text_quote(class, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2417 owl_text_tr(tmpclass, ' ', '.'); 2407 2418 if (instance) { 2408 2419 tmpinstance=owl_text_quote(instance, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2420 owl_text_tr(tmpinstance, ' ', '.'); 2409 2421 } 2410 2422 sprintf(argbuff, "( class ^%s$ )", tmpclass); … … 2707 2719 2708 2720 /* 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 } 2709 2725 owl_filter_set_color(f, owl_util_string_to_color(color)); 2710 2726 owl_global_set_needrefresh(&g);
Note: See TracChangeset
for help on using the changeset viewer.