Changeset d309eb3 for commands.c
- Timestamp:
- Oct 17, 2002, 3:00:57 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:
- e3869df
- Parents:
- aecf3e6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r2527615 rd309eb3 100 100 "-O opcode\n" 101 101 " Send to the specified opcode\n"), 102 103 /* 104 OWLCMD_ARGS("zcrypt", owl_command_zcrypt, OWL_CTX_INTERACTIVE, 105 "send an encrypted zephyr", 106 "zcrypt [-n] [-C] [-c class] [-i instance] [-r realm] [-O opcde] [-m <message...>]\n", 107 "Behaves like zwrite but uses encryption. Not for use with\n" 108 "personal messages\n"), 109 */ 102 110 103 111 OWLCMD_ARGS("reply", owl_command_reply, OWL_CTX_INTERACTIVE, … … 1302 1310 } 1303 1311 return NULL; 1312 } 1313 1314 char *owl_command_zcrypt(int argc, char **argv, char *buff) { 1315 char *tmpbuff, *pos, *cmd, *msg; 1316 1317 /* check for a zwrite -m */ 1318 for (pos = buff; *pos; pos = skiptokens(pos, 1)) { 1319 if (!strncmp(pos, "-m ", 3)) { 1320 cmd = owl_strdup(buff); 1321 msg = cmd+(pos-buff); 1322 *msg = '\0'; 1323 msg += 3; 1324 owl_zwrite_create_and_send_from_line(cmd, msg); 1325 owl_free(cmd); 1326 return NULL; 1327 } 1328 } 1329 1330 if (argc < 2) { 1331 owl_function_makemsg("Not enough arguments to the zcrypt command."); 1332 } else { 1333 tmpbuff = owl_strdup(buff); 1334 owl_function_zwrite_setup(tmpbuff); 1335 owl_global_set_buffercommand(&g, tmpbuff); 1336 owl_free(tmpbuff); 1337 } 1338 return(NULL); 1304 1339 } 1305 1340
Note: See TracChangeset
for help on using the changeset viewer.