summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbslua.c
Commit message (Collapse)AuthorAgeFilesLines
* * fix: memory leak + segv: passing incorrect parameter as buffer. (how can ↵piaip2009-06-161-1/+3
| | | | | | this be found so late!?) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4629 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix compile error on linuxkcwu2009-06-101-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4542 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - refine key processing of CR(C-M), LF(C-J), BS(C-H), BS2(0x7f)piaip2008-04-211-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4223 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change API names to visio format: stand_title -> vs_hdr.piaip2008-04-151-1/+1
| | | | | | | - mouts -> (curses style) mvouts git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4167 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fix crash on printing error messagepiaip2008-04-141-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4163 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change GLOBAL_* to BN_*piaip2008-03-311-3/+3
| | | | | | | WARNING: PLEASE MANUALLY UPDATE pttbbs.conf!! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4051 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - Happy r4000!piaip2008-03-151-1191/+1191
| | | | | | | - source code retab. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4000 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - remove strncpy(). use memcpy() and strlcpy() instead.piaip2008-01-301-2/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3884 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - board: enable changing to MyFavorite in HotBoardspiaip2008-01-301-4/+0
| | | | | | | - bugfix: snprintf() on UNIX takes directly sizeof(buf) and always append NUL. Warning: Windows port will not output NUL if truncated. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3883 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: add iolimit() apipiaip2008-01-261-0/+8
| | | | | | | - board: remove the const name "MyFavFolder" git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3869 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: prepare for storage APIpiaip2008-01-231-51/+116
| | | | | | | - bbslua: display logo correctly with traditional screen git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3854 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: bugfix for toc redirecting and displaypiaip2008-01-211-2/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3847 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fix w32 snprintf issuepiaip2008-01-191-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3846 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fix w32 issuepiaip2008-01-191-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3845 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: change userid() to variable, add usernick, restrict more on lastref.piaip2008-01-191-11/+48
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3844 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: require LatestRef/Title match for latest referringpiaip2008-01-191-94/+384
| | | | | | | - bbslua: add storage and hash system git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3843 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fix bbs.kball() on w32 portpiaip2008-01-181-1/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3840 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbs: allow local mail for web based tarqueuepiaip2008-01-161-23/+58
| | | | | | | | | | - bbslua: unbind file api, add bbs.kball(), reduce kbhit min peek time - annouce: prevent deep directory crash - edit: syntax highlight update - pttbbs.conf: add ASKBOARD into default fav git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3838 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: add default value for getdata, add LatestRefpiaip2008-01-141-23/+132
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3835 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: minor revisekcwu2008-01-131-6/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3831 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix warnings, eol-stylekcwu2008-01-131-21/+21
| | | | | | | | - bbslua: fix "sitename" - bbslua: fix strip_ansi if argument more than 1 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3829 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fixed bbs.clock() calculation on win32 portpiaip2008-01-121-6/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3827 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: limit lua memory usage.kcwu2008-01-121-5/+49
| | | | | | | - bbslua: revise bl_strip_ansi memory allocation code. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3826 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - license text updatepiaip2008-01-121-4/+29
| | | | | | | | - pmore: change lua hotkey to L - bbslua: don't grayout at exit git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3823 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua/pfterm: Add Win32 portingpiaip2008-01-121-25/+84
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3822 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: correct line number in file.kcwu2008-01-111-3/+38
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3821 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - chicken: disable sellingpiaip2008-01-111-1/+3
| | | | | | | | - menu: fix 80-width titles - bbslua: return empty string instead of nil for getdata() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3820 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: enable ^C to break <workaround>piaip2008-01-111-15/+56
| | | | | | | - TODO: enable ungetch() someday. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3818 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: add new toc display/compatibility warning and 0.113 APIpiaip2008-01-101-70/+213
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3815 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fixed: pause() return integer (should be string)piaip2008-01-081-8/+13
| | | | | | | - bbslua: fixed: bbs.color() should reset color git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3809 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fix corrupted coroutinepiaip2008-01-081-21/+39
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3807 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - term: add doupdate() to force refresh even if input queue is not emptypiaip2008-01-071-9/+4
| | | | | | | | - 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
* - bbslua: add TOC infopiaip2008-01-071-17/+127
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3803 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: add version infopiaip2008-01-071-31/+57
| | | | | | | - Makefile: workaround FreeBSD env git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3802 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbs: enhance title editingpiaip2008-01-071-7/+101
| | | | | | | | - bbslua: add more APIs, fix svn prop - bbsluaext: put non-standard modules in our framework git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3801 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: enable bbs:clock()piaip2008-01-061-7/+38
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3800 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fixed: peek_input keeps waiting for new input. (due to buf control)piaip2008-01-061-4/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3799 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: add more APIpiaip2008-01-061-2/+57
| | | | | | | | - cache: add getutmpmode() - othellow: quick exit git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - mail: prevent false alerts more carefullypiaip2008-01-061-21/+71
| | | | | | | | | - pfterm: add getmaxyx - bbslua: change format detection and API refine - var/mode: string fix git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix potential exploits (reported by kcwu)piaip2008-01-051-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3795 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fix tail issue, general refinepiaip2008-01-051-15/+60
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3794 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: fixed compilation error if not using BBS-Luapiaip2008-01-051-2/+2
| | | | | | | | - bbslua: fix key names - sample conf: add description for guest dbcs intresc option git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3793 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - add BBSLUA mode for utmppiaip2008-01-051-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3790 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbslua: add detection of buffer, and enable 'P' in pmore to start bbsluapiaip2008-01-051-21/+125
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3789 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - io: add more control APIpiaip2008-01-051-5/+121
| | | | | | | - bbslua: enable system break git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3788 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - BBS-Lua project: Extend BBS by Lua scripting language.piaip2008-01-041-0/+241
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3786 63ad8ddf-47c3-0310-b6dd-a9e9d9715204