Commit a8ffe649 authored by rswindell's avatar rswindell
Browse files

Created QWK_DEFAULT macro for default QWK setting flags.

parent ab7f7793
......@@ -1051,7 +1051,7 @@ js_new_user(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
user.shell=cfg->new_shell;
user.misc=cfg->new_misc|(AUTOTERM|COLOR);
user.prot=cfg->new_prot;
user.qwk=(QWK_FILES|QWK_ATTACH|QWK_EMAIL|QWK_DELMAIL);
user.qwk=QWK_DEFAULT;
i=newuserdat(cfg,&user);
......
......@@ -104,7 +104,7 @@ BOOL sbbs_t::newuser()
/* Sets defaults per sysop config */
useron.misc|=(cfg.new_misc&~(DELETED|INACTIVE|QUIET|NETMAIL));
useron.qwk=(QWK_FILES|QWK_ATTACH|QWK_EMAIL|QWK_DELMAIL);
useron.qwk=QWK_DEFAULT;
useron.firston=useron.laston=useron.pwmod=time(NULL);
if(cfg.new_expire) {
now=time(NULL);
......
......@@ -410,6 +410,8 @@ typedef enum { /* Values for xtrn_t.event */
#define QWK_NOCTRL (1L<<12) /* No extraneous control files */
#define QWK_EXT (1L<<13) /* QWK Extended (QWKE) format */
#define QWK_MSGID (1L<<14) /* Include "@MSGID" in msgs */
#define QWK_DEFAULT (QWK_FILES|QWK_ATTACH|QWK_EMAIL|QWK_DELMAIL)
/* Bits in user.chat */
#define CHAT_ECHO (1<<0) /* Multinode chat echo */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment