Changeset 453bd70 for commands.c
- Timestamp:
- Jul 2, 2003, 3:24:51 PM (21 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:
- 7c9c847
- Parents:
- cf83b7a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rcf83b7a r453bd70 81 81 "prompts the user to enter a response to some question", 82 82 "start-command <question>", 83 ""), 84 85 OWLCMD_ARGS("start-password", owl_command_start_password, OWL_CTX_INTERACTIVE, 86 "prompts the user to enter a password", 87 "start-password <question>", 83 88 ""), 84 89 … … 118 123 119 124 OWLCMD_ARGS("aimwrite", owl_command_aimwrite, OWL_CTX_INTERACTIVE, 120 "send a zephyr",125 "send an AIM message", 121 126 "aimzwrite <user>", 122 127 "Send an aim message to a user.\n"), … … 640 645 OWLCMD_ARGS("aimlogin", owl_command_aimlogin, OWL_CTX_ANY, 641 646 "login to an AIM account", 642 "aimlogin <screenname> <password>\n",647 "aimlogin <screenname> [<password>]\n", 643 648 ""), 644 649 … … 1224 1229 } 1225 1230 1231 char *owl_command_start_password(int argc, char **argv, char *buff) 1232 { 1233 buff = skiptokens(buff, 1); 1234 owl_function_start_password(buff); 1235 return(NULL); 1236 } 1237 1226 1238 char *owl_command_zaway(int argc, char **argv, char *buff) 1227 1239 { … … 1610 1622 } else { 1611 1623 owl_function_zwrite_setup(buff); 1612 owl_global_set_buffercommand(&g, buff);1613 1624 } 1614 1625 return(NULL); … … 1639 1650 1640 1651 owl_function_aimwrite_setup(newbuff); 1641 owl_global_set_buffercommand(&g, newbuff);1642 1652 owl_free(newbuff); 1643 1653 return(NULL); … … 1661 1671 } else { 1662 1672 owl_function_zwrite_setup(buff); 1663 owl_global_set_buffercommand(&g, buff);1664 1673 } 1665 1674 return(NULL); … … 2095 2104 int ret; 2096 2105 2097 if ( argc!=3) {2106 if ((argc<2) || (argc>3)) { 2098 2107 owl_function_makemsg("Wrong number of arguments to aimlogin command"); 2108 return(NULL); 2109 } 2110 2111 /* if we get two arguments, ask for the password */ 2112 if (argc==2) { 2113 owl_global_set_buffercommand(&g, buff); 2114 owl_function_start_password("Password: "); 2099 2115 return(NULL); 2100 2116 } … … 2230 2246 owl_global_set_needrefresh(&g); 2231 2247 2232 owl_function_ makemsg("Thank you");2248 owl_function_run_buffercommand(); 2233 2249 } 2234 2250
Note: See TracChangeset
for help on using the changeset viewer.