Changeset 12e5f17 for commands.c
- Timestamp:
- Jan 11, 2007, 11:19:34 AM (18 years ago)
- 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:
- 60986b2
- Parents:
- cba04e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rcba04e0 r12e5f17 2440 2440 } 2441 2441 2442 char *owl_command_yes(void)2442 void owl_command_yes(void) 2443 2443 { 2444 2444 owl_message *m; … … 2450 2450 if (owl_view_get_size(v) < 1) { 2451 2451 owl_function_error("No current message."); 2452 return NULL;2452 return; 2453 2453 } 2454 2454 … … 2456 2456 if(!owl_message_is_question(m)) { 2457 2457 owl_function_error("That message isn't a question."); 2458 return NULL;2458 return; 2459 2459 } 2460 2460 if(owl_message_is_answered(m)) { 2461 2461 owl_function_error("You already answered that question."); 2462 return NULL;2462 return; 2463 2463 } 2464 2464 char * cmd = owl_message_get_attribute_value(m, "yescommand"); 2465 2465 if(!cmd) { 2466 2466 owl_function_error("No yes command!"); 2467 return NULL;2467 return; 2468 2468 } 2469 2469 2470 2470 owl_function_command_norv(cmd); 2471 2471 owl_message_set_isanswered(m); 2472 return NULL;2473 } 2474 2475 char *owl_command_no(void)2472 return; 2473 } 2474 2475 void owl_command_no(void) 2476 2476 { 2477 2477 owl_message *m; … … 2483 2483 if (owl_view_get_size(v) < 1) { 2484 2484 owl_function_error("No current message."); 2485 return NULL;2485 return; 2486 2486 } 2487 2487 … … 2489 2489 if(!owl_message_is_question(m)) { 2490 2490 owl_function_error("That message isn't a question."); 2491 return NULL;2491 return; 2492 2492 } 2493 2493 if(owl_message_is_answered(m)) { 2494 2494 owl_function_error("You already answered that question."); 2495 return NULL;2495 return; 2496 2496 } 2497 2497 char * cmd = owl_message_get_attribute_value(m, "nocommand"); 2498 2498 if(!cmd) { 2499 2499 owl_function_error("No no command!"); 2500 return NULL;2500 return; 2501 2501 } 2502 2502 2503 2503 owl_function_command_norv(cmd); 2504 2504 owl_message_set_isanswered(m); 2505 return NULL;2505 return; 2506 2506 } 2507 2507
Note: See TracChangeset
for help on using the changeset viewer.