summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbslua.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-07 23:42:25 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-07 23:42:25 +0800
commitd6256b3ead722675ea0eb5e67c2bc384f0ff14f9 (patch)
treedf5859d7d8b1d37d3f65e62e9daeda11a827852a /mbbsd/bbslua.c
parent54bf456b8d060abdd5b56185ed3ffc52f94e48fd (diff)
downloadpttbbs-d6256b3ead722675ea0eb5e67c2bc384f0ff14f9.tar
pttbbs-d6256b3ead722675ea0eb5e67c2bc384f0ff14f9.tar.gz
pttbbs-d6256b3ead722675ea0eb5e67c2bc384f0ff14f9.tar.bz2
pttbbs-d6256b3ead722675ea0eb5e67c2bc384f0ff14f9.tar.lz
pttbbs-d6256b3ead722675ea0eb5e67c2bc384f0ff14f9.tar.xz
pttbbs-d6256b3ead722675ea0eb5e67c2bc384f0ff14f9.tar.zst
pttbbs-d6256b3ead722675ea0eb5e67c2bc384f0ff14f9.zip
- term: add doupdate() to force refresh even if input queue is not empty
- menu: disable talk/chat for non-reg-ok user - bbslua: change bbs.refresh() to doupdate() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3804 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbslua.c')
-rw-r--r--mbbsd/bbslua.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c
index f993faaf..04349e1a 100644
--- a/mbbsd/bbslua.c
+++ b/mbbsd/bbslua.c
@@ -167,14 +167,10 @@ bl_clrtobot(lua_State* L)
BLAPI_PROTO
bl_refresh(lua_State* L)
{
- refresh();
- return 0;
-}
-
-BLAPI_PROTO
-bl_redrawwin(lua_State* L)
-{
- redrawwin();
+ // refresh();
+ // Seems like that most people don't understand the relationship
+ // between refresh() and input queue, so let's force update here.
+ doupdate();
return 0;
}
@@ -472,7 +468,6 @@ static const struct luaL_reg lib_bbslua [] = {
{ "clrtoeol", bl_clrtoeol },
{ "clrtobot", bl_clrtobot },
{ "refresh", bl_refresh },
- { "redrawwin", bl_redrawwin },
{ "addstr", bl_addstr },
{ "outs", bl_addstr },
{ "print", bl_print },