Changeset 405d5e6


Ignore:
Timestamp:
Apr 10, 2004, 2:01:14 PM (20 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
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:
789462a
Parents:
5e0b690
Message:
Handle MIT Athena OLC zephyrs correctly
Updated ktools website / bug address
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5e0b690 r405d5e6  
    332.1.7-pre-1
    44        The colorclass command is added, to make colorization easy
     5        Handle MIT Athena OLC zephyrs correctly
     6        Updated ktools website / bug address
    57       
    682.1.6
  • owl.c

    rfe1f605 r405d5e6  
    344344  strcat(startupmsg, "                                                                       \n");
    345345  strcat(startupmsg, "If you would like to receive release announcements about Owl you can   \n");
    346   strcat(startupmsg, "join the owl-users@mit.edu mailing list at http://web.mit.edu/ktools/  \n");
     346  strcat(startupmsg, "join the owl-users  mailing list at http://www.ktools.org/             \n");
    347347  strcat(startupmsg, "                                                                 ^ ^   \n");
    348348  strcat(startupmsg, "                                                                 OvO   \n");
    349   strcat(startupmsg, "Please report any bugs or suggestions to bug-owl@mit.edu        (   )  \n");
     349  strcat(startupmsg, "Please report any bugs or suggestions to bug-owl@ktools.org     (   )  \n");
    350350  strcat(startupmsg, "-----------------------------------------------------------------m-m---\n");
    351351  owl_function_adminmsg("", startupmsg);
  • zephyr.c

    r1971b59 r405d5e6  
    345345char *owl_zephyr_get_message(ZNotice_t *n)
    346346{
     347  /* don't let ping messages have a body */
    347348  if (!strcasecmp(n->z_opcode, "ping")) {
    348349    return(owl_strdup(""));
    349350  }
    350351
     352  /* deal with MIT Athena OLC messages */
     353  if (!strcasecmp(n->z_class, "olc") &&
     354      !strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) {
     355    return(owl_zephyr_get_field(n, 1));
     356  }
     357
    351358  return(owl_zephyr_get_field(n, 2));
    352359}
     
    358365  /* return a pointer to the zsig if there is one */
    359366
     367  /* message length 0? No zsig */
    360368  if (n->z_message_len==0) {
    361369    *k=0;
    362370    return("");
    363371  }
     372
     373  /* No zsig for OLC messages */
     374  if (!strcasecmp(n->z_class, "olc") &&
     375      !strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) {
     376    return("");
     377  }
     378
     379  /* Everything else is field 1 */
    364380  *k=strlen(n->z_message);
    365381  return(n->z_message);
Note: See TracChangeset for help on using the changeset viewer.