Changeset 1c6c4d3 for commands.c
- Timestamp:
- Jun 30, 2002, 4:58:09 PM (23 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:
- 507d5aa
- Parents:
- 262422c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rb68f9cd r1c6c4d3 81 81 OWLCMD_ARGS("zwrite", owl_command_zwrite, OWL_CTX_INTERACTIVE, 82 82 "send a zephyr", 83 "zwrite [-n] [-C] [-c class] [-i instance] [-r realm] [-O opcde] [<user> ...] ",83 "zwrite [-n] [-C] [-c class] [-i instance] [-r realm] [-O opcde] [<user> ...] [-m <message...>]", 84 84 "Zwrite send a zephyr to the one or more users specified.\n\n" 85 85 "The following options are available:\n\n" 86 "-m Specifies a message to send without prompting.\n" 87 " Note that this does not yet log an outgoing message.\n" 88 " This must be the last argument.\n\n" 86 89 "-n Do not send a ping message.\n\n" 87 90 "-C If the message is sent to more than one user include a\n" … … 1111 1114 1112 1115 char *owl_command_zwrite(int argc, char **argv, char *buff) { 1113 char *tmpbuff; 1116 char *tmpbuff, *pos, *cmd, *msg; 1117 1118 /* check for a zwrite -m */ 1119 for (pos = buff; *pos; pos = skiptokens(pos, 1)) { 1120 if (!strncmp(pos, "-m ", 3)) { 1121 cmd = owl_strdup(buff); 1122 msg = cmd+(pos-buff); 1123 *msg = '\0'; 1124 msg += 3; 1125 owl_zwrite_create_and_send_from_line(cmd, msg); 1126 owl_free(cmd); 1127 return NULL; 1128 } 1129 } 1130 1114 1131 if (argc < 2) { 1115 1132 owl_function_makemsg("Not enough arguments to the zwrite command.");
Note: See TracChangeset
for help on using the changeset viewer.