Changeset 1d3e925


Ignore:
Timestamp:
Jun 27, 2003, 5:22:39 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:
5bb6c21
Parents:
f562355
Message:
make webzephyr login/logout messages count as login/logout messages
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rf562355 r1d3e925  
    17981798
    17991799      /* 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";
     1800      if ((type==1) && !strcasecmp(owl_message_get_opcode(m), OWL_WEBZEPHYR_OPCODE)) {
     1801        class=OWL_WEBZEPHYR_CLASS;
    18021802        inst=owl_message_get_sender(m);
    18031803        to=OWL_WEBZEPHYR_PRINCIPAL;
    1804       } else if (!strcasecmp(owl_message_get_class(m), "webzephyr") &&
    1805                  owl_message_is_loginout(m)) {
     1804      } else if (!strcasecmp(owl_message_get_class(m), OWL_WEBZEPHYR_CLASS) && owl_message_is_loginout(m)) {
    18061805        /* Special case LOGIN/LOGOUT notifications on class "webzephyr" */
    1807         class="webzephyr";
     1806        class=OWL_WEBZEPHYR_CLASS;
    18081807        inst=owl_message_get_instance(m);
    18091808        to=OWL_WEBZEPHYR_PRINCIPAL;
  • message.c

    ref56a67 r1d3e925  
    658658
    659659  /* Set the "isloginout" attribute if it's a login message */
    660   if (!strcasecmp(n->z_class, "login")) {
     660  if (!strcasecmp(n->z_class, "login") || !strcasecmp(n->z_class, OWL_WEBZEPHYR_CLASS)) {
    661661    if (!strcasecmp(n->z_opcode, "user_login")) {
    662662      owl_message_set_islogin(m);
  • owl.h

    re7cc1c3 r1d3e925  
    124124
    125125#define OWL_WEBZEPHYR_PRINCIPAL "daemon.webzephyr"
     126#define OWL_WEBZEPHYR_CLASS     "webzephyr"
     127#define OWL_WEBZEPHYR_OPCODE    "webzephyr"
    126128
    127129#if defined(HAVE_DES_STRING_TO_KEY) && defined(HAVE_DES_KEY_SCHED) && defined(HAVE_DES_ECB_ENCRYPT)
Note: See TracChangeset for help on using the changeset viewer.