Changeset 4357be8 for variable.c
- Timestamp:
- Dec 26, 2003, 2:01:32 PM (21 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
r3038d13 r4357be8 136 136 "" ), 137 137 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), 144 145 145 146 OWLVAR_BOOL( "ignorelogins" /* %OwlVarStub */, 0, … … 352 353 /* commonly useful */ 353 354 354 int owl_variable_int_validate_gt0(owl_variable *v, void *newval) { 355 int owl_variable_int_validate_gt0(owl_variable *v, void *newval) 356 { 355 357 if (newval == NULL) return(0); 356 358 else if (*(int*)newval < 1) return(0); … … 358 360 } 359 361 360 int owl_variable_int_validate_positive(owl_variable *v, void *newval) { 362 int owl_variable_int_validate_positive(owl_variable *v, void *newval) 363 { 361 364 if (newval == NULL) return(0); 362 365 else if (*(int*)newval < 0) return(0); … … 365 368 366 369 /* typewinsize */ 367 368 int owl_variable_typewinsize_set(owl_variable *v, void *newval){370 int owl_variable_typewinsize_set(owl_variable *v, void *newval) 371 { 369 372 int rv; 370 373 rv = owl_variable_int_set_default(v, newval); … … 374 377 375 378 /* debug (cache value in g->debug) */ 376 int owl_variable_debug_set(owl_variable *v, void *newval) { 379 int owl_variable_debug_set(owl_variable *v, void *newval) 380 { 377 381 if (newval && (*(int*)newval == 1 || *(int*)newval == 0)) { 378 382 g.debug = *(int*)newval; … … 382 386 383 387 /* When 'aaway' is changed, need to notify the AIM server */ 384 int owl_variable_aaway_set(owl_variable *v, void *newval) { 388 int owl_variable_aaway_set(owl_variable *v, void *newval) 389 { 385 390 if (newval) { 386 391 if (*(int*)newval == 1) { … … 393 398 } 394 399 400 int 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 395 410 /* note that changing the value of this will clobber 396 411 * any user setting of this */ 397 int owl_variable_disable_ctrl_d_set(owl_variable *v, void *newval) { 412 int owl_variable_disable_ctrl_d_set(owl_variable *v, void *newval) 413 { 398 414 399 415 if (in_regtest) return owl_variable_int_set_default(v, newval); … … 411 427 } 412 428 413 int owl_variable_tty_set(owl_variable *v, void *newval) { 429 int owl_variable_tty_set(owl_variable *v, void *newval) 430 { 414 431 owl_zephyr_set_locationinfo(owl_global_get_hostname(&g), newval); 415 432 return(owl_variable_string_set_default(v, newval));
Note: See TracChangeset
for help on using the changeset viewer.