diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-03 20:48:41 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-03 20:48:41 +0800 |
commit | af16dfc53f004ad3515296daff9156ec0751b0b5 (patch) | |
tree | f69dc74bd928ef447b24ccc95e14001db89cf3b2 /include | |
parent | 59865815bbd0227f71941e82c37e5fe1d34c1b1f (diff) | |
download | pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.gz pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.bz2 pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.lz pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.xz pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.zst pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.zip |
- add option "default to backup" (from PttSuggest@ptt2)
- user/reg: prevent ambigious regcode.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3962 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/uflags.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uflags.h b/include/uflags.h index ea27bee5..dcc4c84e 100644 --- a/include/uflags.h +++ b/include/uflags.h @@ -36,8 +36,15 @@ #define NO_MODMARK_FLAG 0x00001000 /* true if modified files are NOT marked */ #define COLORED_MODMARK 0x00002000 /* true if mod-mark is coloured. */ +/* Backup Preference */ +#define DEFBACKUP_FLAG 0x00010000 /* true if user defaults to backup */ + +#define TOBACKUP(x) ((cuser.uflag & DEFBACKUP_FLAG) ? \ + (x != 'n') : \ + (x == 'y') ) + /* NEW ENTRY HERE */ -// #define ??__??? 0x00010000 +// #define ??__??? 0x00100000 /* -------------------- userec_t.uflag2 (unsigned int) */ |