Changeset 5a95b69 for owl.c


Ignore:
Timestamp:
Dec 20, 2003, 1:35:36 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:
72836b5
Parents:
c8735aa
Message:
New code for getting users from .anyfile
Added the 'pseudologins' variable, and code to do it
new attributes 'pseudo' 'logintty' and 'loginhost'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    ra68f05d r5a95b69  
    342342  }
    343343
     344  /* First buddy check to sync the list without notifications */
     345  owl_function_debugmsg("startup: doing initial zephyr buddy check");
     346  owl_function_zephyr_buddy_check(0);
     347
    344348  /* set the startup and default style, based on userclue and presence of a
    345349   * formatting function */
     
    491495      }
    492496
     497      /* if it's a zephyr login or logout, update the zbuddylist */
     498      if (owl_message_is_type_zephyr(m) && owl_message_is_loginout(m)) {
     499        if (owl_message_is_login(m)) {
     500          owl_zbuddylist_adduser(owl_global_get_zephyr_buddylist(&g), owl_message_get_sender(m));
     501        } else if (owl_message_is_logout(m)) {
     502          owl_zbuddylist_deluser(owl_global_get_zephyr_buddylist(&g), owl_message_get_sender(m));
     503        } else {
     504          owl_function_error("Internal error: received login notice that is neither login nor logout");
     505        }
     506      }
     507
    493508      /* check for burning ears message */
    494509      /* this is an unsupported feature */
     
    504519      if (owl_global_is_logging(&g) || owl_global_is_classlogging(&g)) {
    505520        owl_log_incoming(m);
     521      }
     522    }
     523
     524    /* is it time to check zbuddies? */
     525    if (owl_global_is_pseudologins(&g)) {
     526      if (owl_timer_is_expired(owl_global_get_zephyr_buddycheck_timer(&g))) {
     527        owl_function_debugmsg("Doing zephyr buddy check");
     528        owl_function_zephyr_buddy_check(1);
     529        owl_timer_reset(owl_global_get_zephyr_buddycheck_timer(&g));
    506530      }
    507531    }
Note: See TracChangeset for help on using the changeset viewer.