Changeset 9ceee9d for commands.c


Ignore:
Timestamp:
Jul 4, 2003, 12:26:03 AM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
3ba3af0
Parents:
5b85d19
Message:
There is now a zcrypt command
Replies to zcrypted messages now work
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r5b85d19 r9ceee9d  
    127127              "Send an aim message to a user.\n"),
    128128
    129   /*
    130129  OWLCMD_ARGS("zcrypt", owl_command_zcrypt, OWL_CTX_INTERACTIVE,
    131130              "send an encrypted zephyr",
     
    133132              "Behaves like zwrite but uses encryption.  Not for use with\n"
    134133              "personal messages\n"),
    135   */
    136134 
    137135  OWLCMD_ARGS("reply", owl_command_reply,  OWL_CTX_INTERACTIVE,
     
    16601658char *owl_command_zcrypt(int argc, char **argv, char *buff)
    16611659{
     1660#ifdef OWL_ENABLE_ZCRYPT
    16621661  owl_zwrite z;
    16631662
    1664   /* check for a zwrite -m */
     1663  if (!owl_global_is_havezephyr(&g)) {
     1664    owl_function_makemsg("Zephyr is not available");
     1665    return(NULL);
     1666  }
     1667  /* check for a zcrypt -m */
    16651668  owl_zwrite_create_from_line(&z, buff);
    16661669  if (owl_zwrite_is_message_set(&z)) {
    1667     owl_zwrite_send_message(&z);
    1668     owl_function_make_outgoing_zephyr(owl_zwrite_get_message(&z), buff, owl_zwrite_get_zsig(&z));
     1670    owl_function_zcrypt(buff, NULL);
    16691671    owl_zwrite_free(&z);
    16701672    return (NULL);
     
    16771679  }
    16781680  return(NULL);
     1681#else
     1682  owl_function_makemsg("This Owl does not support zcrypt");
     1683#endif
    16791684}
    16801685
Note: See TracChangeset for help on using the changeset viewer.