summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/more.c4
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