Changeset 4357be8 for variable.c


Ignore:
Timestamp:
Dec 26, 2003, 2:01:32 PM (21 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:
32eed98
Parents:
bf73bdd
Message:
Don't print an error about loading subs if there is no .zephyr.subs
Do the initial zephyr_buddy_check when pseduologin set to true.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    r3038d13 r4357be8  
    136136               "" ),
    137137
    138   OWLVAR_BOOL( "pseudologins" /* %OwlVarStub */, 0,
    139                "Enable zephyr pseudo logins",
    140                "When this is enabled, Owl will periodically check the zephyr\n"
    141                "location of users in your .anyone file.  If a user is present\n"
    142                "but sent no login message, or a user is not present that sent no\n"
    143                "logout message a pseudo login or logout message wil be created\n"),
     138  OWLVAR_BOOL_FULL( "pseudologins" /* %OwlVarStub */, 0,
     139                    "Enable zephyr pseudo logins",
     140                    "When this is enabled, Owl will periodically check the zephyr\n"
     141                    "location of users in your .anyone file.  If a user is present\n"
     142                    "but sent no login message, or a user is not present that sent no\n"
     143                    "logout message a pseudo login or logout message wil be created\n",
     144                    NULL, owl_variable_pseudologins_set, NULL),
    144145
    145146  OWLVAR_BOOL( "ignorelogins" /* %OwlVarStub */, 0,
     
    352353/* commonly useful */
    353354
    354 int owl_variable_int_validate_gt0(owl_variable *v, void *newval) {
     355int owl_variable_int_validate_gt0(owl_variable *v, void *newval)
     356{
    355357  if (newval == NULL) return(0);
    356358  else if (*(int*)newval < 1) return(0);
     
    358360}
    359361
    360 int owl_variable_int_validate_positive(owl_variable *v, void *newval) {
     362int owl_variable_int_validate_positive(owl_variable *v, void *newval)
     363{
    361364  if (newval == NULL) return(0);
    362365  else if (*(int*)newval < 0) return(0);
     
    365368
    366369/* typewinsize */
    367 
    368 int owl_variable_typewinsize_set(owl_variable *v, void *newval) {
     370int owl_variable_typewinsize_set(owl_variable *v, void *newval)
     371{
    369372  int rv;
    370373  rv = owl_variable_int_set_default(v, newval);
     
    374377
    375378/* debug (cache value in g->debug) */
    376 int owl_variable_debug_set(owl_variable *v, void *newval) {
     379int owl_variable_debug_set(owl_variable *v, void *newval)
     380{
    377381  if (newval && (*(int*)newval == 1 || *(int*)newval == 0)) {
    378382    g.debug = *(int*)newval;
     
    382386
    383387/* When 'aaway' is changed, need to notify the AIM server */
    384 int owl_variable_aaway_set(owl_variable *v, void *newval) {
     388int owl_variable_aaway_set(owl_variable *v, void *newval)
     389{
    385390  if (newval) {
    386391    if (*(int*)newval == 1) {
     
    393398}
    394399
     400int owl_variable_pseudologins_set(owl_variable *v, void *newval)
     401{
     402  if (newval) {
     403    if (*(int*)newval == 1) {
     404      owl_function_zephyr_buddy_check(0);
     405    }
     406  }
     407  return owl_variable_bool_set_default(v, newval);
     408}
     409
    395410/* note that changing the value of this will clobber
    396411 * any user setting of this */
    397 int owl_variable_disable_ctrl_d_set(owl_variable *v, void *newval) {
     412int owl_variable_disable_ctrl_d_set(owl_variable *v, void *newval)
     413{
    398414
    399415  if (in_regtest) return owl_variable_int_set_default(v, newval);
     
    411427}
    412428
    413 int owl_variable_tty_set(owl_variable *v, void *newval) {
     429int owl_variable_tty_set(owl_variable *v, void *newval)
     430{
    414431  owl_zephyr_set_locationinfo(owl_global_get_hostname(&g), newval);
    415432  return(owl_variable_string_set_default(v, newval));
Note: See TracChangeset for help on using the changeset viewer.