Changeset 9381782


Ignore:
Timestamp:
Jun 22, 2003, 1:33:09 AM (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:
b2a91b6
Parents:
0c502e9
Message:
$owl::auth now works
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r0c502e9 r9381782  
    88        Fix for checking for DES
    99        Bug fix in using makemsg when no curses window present
     10        $owl::auth now works
    1011
    11122.0.4-pre-1
  • functions.c

    r0c502e9 r9381782  
    13151315
    13161316      owl_fmtext_append_normal(&fm,    "  Auth      : ");
    1317       if (n->z_auth == ZAUTH_FAILED) {
    1318         owl_fmtext_append_normal(&fm, "FAILED\n");
    1319       } else if (n->z_auth == ZAUTH_NO) {
    1320         owl_fmtext_append_normal(&fm, "NO\n");
    1321       } else if (n->z_auth == ZAUTH_YES) {
    1322         owl_fmtext_append_normal(&fm, "YES\n");
    1323       } else {
    1324         sprintf(buff, "Unknown State (%i)\n", n->z_auth);
    1325         owl_fmtext_append_normal(&fm, buff);
    1326       }
     1317      owl_fmtext_append_normal(&fm, owl_zephyr_get_authstr(n));
     1318      owl_fmtext_append_normal(&fm, "\n");
    13271319
    13281320      /* fix this */
  • readconfig.c

    r0c502e9 r9381782  
    170170  sv_setpv(perl_get_sv("owl::type", TRUE), owl_message_type_to_string(m));
    171171
     172
     173  /* set owl::auth default */
     174  sv_setpv(perl_get_sv("owl::auth", TRUE), "YES");
     175
    172176  /* set owl::direction */
    173177  if (owl_message_is_direction_in(m)) {
    174178    sv_setpv(perl_get_sv("owl::direction", TRUE), "in");
     179
     180    /* Change auth value for in messages */
     181    sv_setpv(perl_get_sv("owl::auth", TRUE), owl_zephyr_get_authstr(owl_message_get_notice(m)));
     182
    175183  } else if (owl_message_is_direction_out(m)) {
    176184    sv_setpv(perl_get_sv("owl::direction", TRUE), "out");
  • zephyr.c

    rbe0a79f r9381782  
    700700  owl_free(filename);
    701701}
     702
     703/* return auth string */
     704char *owl_zephyr_get_authstr(ZNotice_t *n)
     705{
     706
     707  if (!n) return("UNKNOWN");
     708
     709  if (n->z_auth == ZAUTH_FAILED) {
     710    return ("FAILED");
     711  } else if (n->z_auth == ZAUTH_NO) {
     712    return ("NO");
     713  } else if (n->z_auth == ZAUTH_YES) {
     714    return ("YES");
     715  } else {
     716    return ("UNKNOWN");
     717  }           
     718}
     719
     720
Note: See TracChangeset for help on using the changeset viewer.