summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-21 09:48:37 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-21 09:48:37 +0800
commitb53295079fcb7ea46a2f49ce21eb29ea4c786c6a (patch)
tree6c2f8416e28b13067fd33dbbe274268a3c87dc9c /mbbsd
parentd25ece0082e11b93ab6bf3117673040e54ea6b91 (diff)
downloadpttbbs-b53295079fcb7ea46a2f49ce21eb29ea4c786c6a.tar
pttbbs-b53295079fcb7ea46a2f49ce21eb29ea4c786c6a.tar.gz
pttbbs-b53295079fcb7ea46a2f49ce21eb29ea4c786c6a.tar.bz2
pttbbs-b53295079fcb7ea46a2f49ce21eb29ea4c786c6a.tar.lz
pttbbs-b53295079fcb7ea46a2f49ce21eb29ea4c786c6a.tar.xz
pttbbs-b53295079fcb7ea46a2f49ce21eb29ea4c786c6a.tar.zst
pttbbs-b53295079fcb7ea46a2f49ce21eb29ea4c786c6a.zip
- bbslua: bugfix for toc redirecting and display
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3847 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbslua.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c
index 23dc0ed4..ee0500fe 100644
--- a/mbbsd/bbslua.c
+++ b/mbbsd/bbslua.c
@@ -1179,7 +1179,6 @@ static const char *bbsluaTocPrompts[] =
{
"界面版本",
"最新版本",
- "程式名稱",
// BLCONF_PRINT_TOC_INDEX
"名稱",
@@ -1478,7 +1477,7 @@ void bbslua_loadLatest(lua_State *L,
// pop all
lua_pop(L, 5); // stack = 1 (old toc)
- if (isnewver)
+ if (!isnewver)
lua_setglobal(L, "toc");
else
lua_pop(L, 1);