Skip to content
Snippets Groups Projects
Commit fb510a31 authored by rswindell's avatar rswindell
Browse files

Changed the name of the temporary user object from "user" (which

conflicts with the global user object) to "guest".
parent b5273b08
No related branches found
No related tags found
No related merge requests found
......@@ -20,19 +20,19 @@ if(system.matchuser("Guest")) {
load("sbbsdefs.js"); // needed for UFLAG_* definitions
// Create the account
user=system.new_user("Guest");
user.gender='?';
user.comment="This is the auto-generated Guest/Anonymous user account.";
guest=system.new_user("Guest");
guest.gender='?';
guest.comment="This is the auto-generated Guest/Anonymous user account.";
// Setup intelligent security parameters
user.security.restrictions|=UFLAG_G; // can't edit defaults (main 'Guest' indicator)
user.security.restrictions|=UFLAG_K; // can't read sent mail
user.security.restrictions|=UFLAG_P; // can't post
user.security.restrictions|=UFLAG_M; // can't post on networked subs (redundant)
user.security.restrictions|=UFLAG_W; // can't write to the auto-message
user.security.exemptions|=UFLAG_G; // multiple simultaneous logins
user.security.exemptions|=UFLAG_L; // unlimited logons per day
user.security.exemptions|=UFLAG_T; // unlimited time online
user.security.exemptions|=UFLAG_P; // permanent (never expires)
printf("Guest account (user #%d) created successfully.\r\n",user.number);
guest.security.restrictions|=UFLAG_G; // can't edit defaults (main 'Guest' indicator)
guest.security.restrictions|=UFLAG_K; // can't read sent mail
guest.security.restrictions|=UFLAG_P; // can't post
guest.security.restrictions|=UFLAG_M; // can't post on networked subs (redundant)
guest.security.restrictions|=UFLAG_W; // can't write to the auto-message
guest.security.exemptions|=UFLAG_G; // multiple simultaneous logins
guest.security.exemptions|=UFLAG_L; // unlimited logons per day
guest.security.exemptions|=UFLAG_T; // unlimited time online
guest.security.exemptions|=UFLAG_P; // permanent (never expires)
printf("Guest account (user #%d) created successfully.\r\n",guest.number);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment