Changeset e7cc1c3


Ignore:
Timestamp:
Jun 27, 2003, 1:03:16 PM (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:
f562355
Parents:
b278973
Message:
More detailed usage from -h
Special cased replies for webzephyr users on classes and login
  notifications for webzephyr users
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rb278973 re7cc1c3  
    44        Fix in finding des for building zcrypt
    55        Fixed description for alert_action variable
     6        More detailed usage from -h
     7        Special cased replies for webzephyr users on classes and
     8          login notifications for webzephyr users
    69       
    7102.0.4
  • functions.c

    rce7db4d re7cc1c3  
    17441744
    17451745
     1746/* if type = 0 then normal reply.
     1747 * if type = 1 then it's a reply to sender
     1748 * if enter = 0 then allow the command to be edited
     1749 * if enter = 1 then don't wait for editing
     1750 */
    17461751void owl_function_reply(int type, int enter)
    17471752{
    1748   /* if type = 0 then normal reply.
    1749    * if type = 1 then it's a reply to sender
    1750    * if enter = 0 then allow the command to be edited
    1751    * if enter = 1 then don't wait for editing
    1752    */
    17531753  char *buff, *oldbuff;
    17541754  owl_message *m;
     
    17901790      }
    17911791
     1792      /* if it's a zephyr we sent, send it out the same way again */
    17921793      if (owl_message_is_direction_out(m)) {
    17931794        owl_function_zwrite_setup(owl_message_get_zwriteline(m));
    17941795        owl_global_set_buffercommand(&g, owl_message_get_zwriteline(m));
    17951796        return;
     1797      }
     1798
     1799      /* Special case a personal reply to a webzephyr user on a class */
     1800      if ((type==1) && !strcasecmp(owl_message_get_opcode(m), "webzephyr")) {
     1801        class="webzephyr";
     1802        inst=owl_message_get_sender(m);
     1803        to=OWL_WEBZEPHYR_PRINCIPAL;
     1804      }
     1805
     1806      /* Special case LOGIN/LOGOUT notifications on class "webzephyr" */
     1807      if (!strcasecmp(owl_message_get_class(m), "webzephyr") &&
     1808          owl_message_is_loginout(m)) {
     1809        class="webzephyr";
     1810        inst=owl_message_get_instance(m);
     1811        to=OWL_WEBZEPHYR_PRINCIPAL;
    17961812      }
    17971813     
  • owl.c

    re075479 re7cc1c3  
    516516
    517517void usage() {
    518   fprintf(stderr, "Usage: owl [-n] [-d] [-v] [-c <configfile>] [-t <ttyname>]\n");
     518  fprintf(stderr, "Owl version %s\n", OWL_VERSION_STRING);
     519  fprintf(stderr, "Usage: owl [-n] [-d] [-v] [-h] [-c <configfile>] [-t <ttyname>]\n");
     520  fprintf(stderr, "  -n      don't load zephyr subscriptions\n");
     521  fprintf(stderr, "  -d      enable debugging\n");
     522  fprintf(stderr, "  -v      print the Owl version number and exit\n");
     523  fprintf(stderr, "  -h      print this help message\n");
     524  fprintf(stderr, "  -c      specify an alternate config file\n");
     525  fprintf(stderr, "  -t      set the tty name\n");
     526 
    519527}
  • owl.h

    r0435c7d re7cc1c3  
    122122
    123123#define OWL_CMD_ALIAS_SUMMARY_PREFIX "command alias to: "
     124
     125#define OWL_WEBZEPHYR_PRINCIPAL "daemon.webzephyr"
    124126
    125127#if defined(HAVE_DES_STRING_TO_KEY) && defined(HAVE_DES_KEY_SCHED) && defined(HAVE_DES_ECB_ENCRYPT)
  • util.c

    re4eebe8 re7cc1c3  
    469469    return(out);
    470470  }
    471   if (!strncasecmp(in, "daemon.webzephyr", strlen("daemon.webzephyr"))) {
     471  if (!strncasecmp(in, OWL_WEBZEPHYR_PRINCIPAL, strlen(OWL_WEBZEPHYR_PRINCIPAL))) {
    472472    return(out);
    473473  }
Note: See TracChangeset for help on using the changeset viewer.