home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / BBSONLIN / REG-314.ZIP / REGISTRY.H < prev    next >
Text File  |  1992-12-25  |  2KB  |  35 lines

  1. /*
  2.  
  3.  REGISTRY OF USERS Ver 3.0
  4.      by Jon Dietrich
  5.  
  6.  REGISTRY.H
  7.  Header file to be installed at beginning of MSGBASE1.C
  8.  
  9. */
  10.  
  11. char registry_string[50];
  12.  
  13. #define REGISTRY \
  14.  case '$':                                                                  \
  15.    grab_user_name(&(msgs[msgnum].msg),subboards[curlsub].filename);         \
  16.    ss=syscfg.sl[thisuser.sl];                                               \
  17.    grab_user_name(&(msgs[msgnum].msg),subboards[curlsub].filename);         \
  18.    ss=syscfg.sl[thisuser.sl];                                               \
  19.    if( (lcs()) || (ss.ability & ability_read_post_anony) ||                 \
  20.        (msgs[msgnum].anony==0) )                                            \
  21.       if(msgs[msgnum].ownersys==0) {                                        \
  22.     sprintf(registry_string,"REGISTRY %d",msgs[msgnum].owneruser);      \
  23.     full_external(registry_string,0,1);                                 \
  24.        }                                                                    \
  25.      else {                                                                 \
  26.       nl();                                                                 \
  27.       ansic(5);                                                             \
  28.       pl("   Can't view registry of a user on another system...");          \
  29.      }                                                                      \
  30.     else {                                                                  \
  31.      nl();                                                                  \
  32.      ansic(5);                                                              \
  33.      pl("   Can't view registry of an anonymous user...");                  \
  34.     }                                                                       \
  35.   break;