Changeset 405d5e6 for zephyr.c


Ignore:
Timestamp:
Apr 10, 2004, 2:01:14 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:
789462a
Parents:
5e0b690
Message:
Handle MIT Athena OLC zephyrs correctly
Updated ktools website / bug address
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.