diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-16 06:01:56 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-16 06:01:56 +0800 |
commit | 1cf154c0d7bda6de7ad22a500abc6931497445b1 (patch) | |
tree | 3b348b1cbe1611060997c04b43ecb56eb214326e | |
parent | a651445de0fecf57aa023ef1163de11236cb1056 (diff) | |
download | pttbbs-1cf154c0d7bda6de7ad22a500abc6931497445b1.tar pttbbs-1cf154c0d7bda6de7ad22a500abc6931497445b1.tar.gz pttbbs-1cf154c0d7bda6de7ad22a500abc6931497445b1.tar.bz2 pttbbs-1cf154c0d7bda6de7ad22a500abc6931497445b1.tar.lz pttbbs-1cf154c0d7bda6de7ad22a500abc6931497445b1.tar.xz pttbbs-1cf154c0d7bda6de7ad22a500abc6931497445b1.tar.zst pttbbs-1cf154c0d7bda6de7ad22a500abc6931497445b1.zip |
* add error message if guest wants to use bbslua
* add DISABLE_BBSLUA_IN_PAGER macro to make sites able to run only authorized lua code
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4631 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/more.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c index d33f8e04..878099f9 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -79,12 +79,14 @@ int more(const char *fpath, int promptend) } break; -#if defined(USE_BBSLUA) +#if defined(USE_BBSLUA) && !defined(DISABLE_BBSLUA_IN_PAGER) case RET_DOBBSLUA: r = FULLUPDATE; if (HasUserPerm(PERM_BASIC)) { bbslua(fpath); + } else { + vmsg("抱歉,此帳號無權限執行 BBS-Lua 程式。"); } break; #endif |