Changes in commands.c [697221f:3b8a563]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r697221f r3b8a563 281 281 OWLCMD_ARGS("punt", owl_command_punt, OWL_CTX_ANY, 282 282 "suppress an arbitrary filter", 283 "punt <filter- name>\n"284 "punt <filter-text (multiple words)> ",283 "punt <filter-text>", 284 "punt <filter-text (multiple words)>\n" 285 285 "The punt command will suppress messages to the specified\n" 286 286 "filter\n\n" … … 289 289 OWLCMD_ARGS("unpunt", owl_command_unpunt, OWL_CTX_ANY, 290 290 "remove an entry from the punt list", 291 "unpunt < number>\n"292 "unpunt <filter- name>\n"293 "unpunt < filter-text (multiple words)>",291 "unpunt <filter-text>\n" 292 "unpunt <filter-text>\n" 293 "unpunt <number>\n", 294 294 "The unpunt command will remove an entry from the puntlist.\n" 295 "The last two forms correspond to thetwo forms of the :punt\n"296 "command. The first allows you to remove a specific entry from\n"295 "The first two forms correspond to the first two forms of the :punt\n" 296 "command. The latter allows you to remove a specific entry from the\n" 297 297 "the list (see :show zpunts)\n\n" 298 298 "SEE ALSO: punt, zpunt, zunpunt, show zpunts\n"), … … 2464 2464 owl_list * fl; 2465 2465 owl_filter * f; 2466 char * text; 2466 2467 int i; 2467 2468 … … 2479 2480 return; 2480 2481 } else { 2481 owl_function_ makemsg("No such filter number: %d.", i+1);2482 owl_function_error("No such filter number: %d", i+1); 2482 2483 } 2483 2484 } 2484 const char *filter[] = {"filter", argv[1]}; 2485 owl_function_punt(2, filter, unpunt); 2485 text = owl_string_build_quoted("filter %q", argv[1]); 2486 owl_function_punt(text, unpunt); 2487 g_free(text); 2486 2488 } else { 2487 /* Pass in argv[1]..argv[argc-1]. */ 2488 owl_function_punt(argc - 1, argv + 1, unpunt); 2489 owl_function_punt(skiptokens(buff, 1), unpunt); 2489 2490 } 2490 2491 }
Note: See TracChangeset
for help on using the changeset viewer.