summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
Commit message (Collapse)AuthorAgeFilesLines
* WARNING: THIS PATCHSET CHANGED SHM STRUCTURE. PLEASE READ UPDATING CAREFULLY.piaip2008-05-131-8/+1
| | | | | | | - (internal) change IP/from sorting mechanism. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4307 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change 86400/... (seconds of day/month/...) to named constants.piaip2008-05-101-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4284 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) replace all localtime4() by localtime4_r().piaip2008-05-051-5/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4272 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - check send mail permissionpiaip2008-04-271-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4250 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - enable 'Q' in userlist to query all userspiaip2008-04-261-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4248 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - message refinepiaip2008-04-241-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4243 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - ZA: simple workaround to prevent Ctrl-U re-entrant issuepiaip2008-04-231-0/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4237 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - code refine: use ANSI_REVERSE to replace ANSI_COLOR(7), more meaningful.piaip2008-04-221-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4229 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - refine key processing of CR(C-M), LF(C-J), BS(C-H), BS2(0x7f)piaip2008-04-211-6/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4223 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - finetune (rollback) menu and userlist layoutpiaip2008-04-191-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4207 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - make ZA system complete.piaip2008-04-191-2/+8
| | | | | | | - elimiate minor warning git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4205 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - talk: userlist is now scalable, with the power of VCOL layout system.piaip2008-04-191-75/+81
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4202 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - minor code revise, fix buffer sizekcwu2008-04-171-10/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4180 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) getans -> vanspiaip2008-04-171-2/+2
| | | | | | | - (internal) update license git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4175 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) visio: add vgetspiaip2008-04-171-7/+7
| | | | | | | | - (internal) add key name KEY_BS2 - (internal) move getDBCSstatus to DBCS_Status git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4174 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change API names to visio format: stand_title -> vs_hdr.piaip2008-04-151-6/+6
| | | | | | | - mouts -> (curses style) mvouts git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4167 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) code refine - improving visio systempiaip2008-04-151-7/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4164 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - visio: add vbar and varf, better l-r API.piaip2008-04-131-14/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4148 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* (internal code refine)piaip2008-04-121-11/+2
| | | | | | | | - drop deprecated EDIT_ITEM, standout(), standend() - replace outmsglr() with vfooter(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4147 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Change tobind/toconnect interface.wens2008-04-101-4/+4
| | | | | | | **OUTTACACHE is now UTMPD** git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4121 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Drop Solaris supportwens2008-04-091-12/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4115 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - bbs: fixed: BM can skip PostRestriction check for x-crosspost.piaip2008-04-091-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4106 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - talk: fix waterball initializationpiaip2008-04-091-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4105 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) migrate to new getdata() API namespiaip2008-04-081-14/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4101 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change mail/log to specific API.piaip2008-04-031-27/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4070 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - angel system: extend pager modes to 3 types (accept, reject new, reject all)piaip2008-04-021-311/+25
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4064 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - make angel status more accessible in talk listpiaip2008-04-021-0/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4063 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - angel: add Ctrl-P in userlist to toggle angel_pause.piaip2008-04-021-1/+19
| | | | | | | - angel: setting angel_pause now takes effects immediately. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4062 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - finetune angel nick processingpiaip2008-04-021-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4061 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - print angel_msg last modified datepiaip2008-04-021-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4059 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - enable angel to temporary disable pager again.piaip2008-04-011-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4054 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change GLOBAL_* to BN_*piaip2008-03-311-2/+2
| | | | | | | WARNING: PLEASE MANUALLY UPDATE pttbbs.conf!! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4051 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - drop angel_reject features (requested from okcool@ptt)piaip2008-03-311-24/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4050 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix compiler warningspiaip2008-03-301-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4047 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (experimental) mask ip(fromhost): USE_MASKED_FROMHOSTpiaip2008-03-291-9/+21
| | | | | | | - board: make 'w' (save_brc) more user friendly. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4039 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - talk: reduce GotoNewHand crash (C-Uhh or C-Urhh)piaip2008-03-091-9/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3980 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - chicken: enable PK with new mmap stylepiaip2008-03-061-2/+4
| | | | | | | - userec_t: comments for deprecated chicken data git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3969 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - chicken: move chicken data to user directory, with mmap based synchronization.piaip2008-03-061-20/+0
| | | | | | | | - WARNING: PLEASE RUN upgrade/r3968_chicken.c TO MIGRATE USER CHICKEN DATA. - YOU NEED TO RESTART BBS FOR THIS PATCH. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3968 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - talk: warn user that we don'e accept empty input for talklog decision.piaip2008-03-051-2/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3964 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - add option "default to backup" (from PttSuggest@ptt2)piaip2008-03-031-2/+5
| | | | | | | - user/reg: prevent ambigious regcode. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3962 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - unify give_money in both userlist/g and menu/g.piaip2008-02-261-26/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3951 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - talk: comment on mail_checkpiaip2008-02-211-0/+2
| | | | | | | | - cache: better def-style on aggchk - admin: enable showing regform counter git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3933 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - remove terminal workarounds if we use pftermpiaip2007-12-261-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3745 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - redrawin() changed to 'invalid only' and will take change at next refreshpiaip2007-12-241-3/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3734 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - talk: fix unerased buffer (after scroll/new page)piaip2007-12-221-18/+58
| | | | | | | - talk: fix dbcs display error (reason: incomplete dbcs string) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3727 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - term: don't do too much thing in resizepiaip2007-12-221-1/+1
| | | | | | | - talk: change variable order to git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3725 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - refresh screen after changing window sizepiaip2007-12-211-1/+1
| | | | | | | - fix getdata() clrtoeol issue git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3720 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - change screen APIs to ncurses-like namespiaip2007-12-211-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3717 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - talk: big_picture free version, prepared for pftermpiaip2007-12-211-124/+171
| | | | | | | - chess family: check the exisitance of big_picture. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3716 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - grayout: API change, from [y,end) to [y,end]piaip2007-12-201-1/+1
| | | | | | | | - feature names change: now HAVE_GRAYOUT - edit ask() changed to vmsg to prevent standout() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3713 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - general message update and optimizationpiaip2007-12-171-1/+1
| | | | | | | - change search_num() to getdata(), allow unified control git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3698 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - prepare to remove chicken-pkpiaip2007-12-161-14/+28
| | | | | | | - menu string update git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3695 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - change money name to macro for better isolationpiaip2007-12-081-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3650 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - add some grayout effects, and general code improvementpiaip2007-12-051-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3638 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fixed N in userlist forgetting to initialize user nickname.piaip2007-12-051-4/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3631 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - move hard-coded board names to pttbbs.conf.piaip2007-12-051-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3629 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - general code refine: remove all hard-coded "Ptt" message string and wens2007-12-051-4/+6
| | | | | | | use macro BBSMNAME/BBSMNAME2 instead git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3628 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - add move_ansi() to support moving to lines with prior ANSI code.piaip2007-12-011-1/+4
| | | | | | | - general improvement git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3602 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* General Update by PttSuggest:piaip2007-12-011-0/+18
| | | | | | | | | | | - 'w' in mail can msg - author in mail header will highlight if online - recommendation message fix - ignore empty input for login - better prompt for empty fav git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3599 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * save memory, NameList is more like STL's vector nowkcwu2007-10-171-2/+2
| | | | | | | | * fix corner case of fav bug * code revise git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3585 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * don't allow reenter mail, otherwise may cause many problems.kcwu2007-09-251-2/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3575 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * revise code for entering board.kcwu2007-09-231-4/+5
| | | | | | | * fix board permission. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3571 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix bug: don't getdata() on non-local variable directly, to avoid ↵kcwu2007-09-211-1/+3
| | | | | | reentrant crash. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3564 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove unnecessary featurekcwu2007-09-211-28/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3563 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix crash bug: race condition between idle and talk interrupt.kcwu2007-09-201-14/+15
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3558 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ctime4() instead of ctime()scw2007-06-171-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3543 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Log angel changing action and report every weekscw2007-06-041-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3532 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * don't output progress bar when sync data with utmpserver since it isn't ↵kcwu2007-06-021-21/+0
| | | | | | slow anymore. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3528 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix racing bug for giving money.kcwu2007-06-021-3/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3527 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Reversi (multiplayer othello) addedscw2007-05-301-8/+23
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3523 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Clear bufferscw2007-05-231-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3515 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* No white space padding when prvious string already too longscw2007-05-131-0/+1
| | | | | | | (due to the bug in dietlibc cvs version) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3514 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * skip KEY_UNKNOWN.kcwu2007-05-091-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3513 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix last commitscw2006-12-101-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3453 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* angel can have a nick namescw2006-12-101-7/+38
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3452 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Allocate water[] on demend. Saved about 4400 bytes.kcwu2006-09-171-0/+14
| | | | | | | Only 4%~5% online user of ptt use this feature. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3420 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* avoid to use gethostbyname() which require hidden memory consumption.kcwu2006-09-171-7/+2
| | | | | | | save near 1k memory. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3417 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Display angel usage when calling angelscw2006-07-301-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3395 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix tail \n in angle messagescw2006-07-261-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3390 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* display current offline message for angelsscw2006-07-231-2/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3384 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* only sethomepath when angel exists.kcwu2006-04-081-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3330 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix potential infinite loop bug,kcwu2006-04-081-8/+16
| | | | | | | and properly release resource when connection fail. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3329 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* prevent query too frequently by sleeping after each query.kcwu2006-04-081-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3328 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* more crash assertion.kcwu2006-04-011-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3322 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* make it harder to multi-login by race condition.kcwu2006-04-011-5/+10
| | | | | | | prevent logout function reenter. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3319 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Wrong check on angel changingscw2006-03-301-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3314 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* prevent multi-login and slow login flooding.kcwu2006-03-301-36/+70
| | | | | | | WARRNING, utmpserver protocol is incompatiable with old mbbsd. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3312 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* avoid C++ keywords to make include files C++ friendly.kcwu2006-03-131-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3279 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* GO scoring and displaying on userlist.scw2006-03-121-4/+12
| | | | | | | !!!NOTE: shared memory changed!!! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3276 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* r3280@kcwu: kcwu | 2006-02-18 13:33:14 +0800kcwu2006-02-181-3/+0
| | | | | | | remove unused code. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3272 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace some strncpy with strlcpy, or just strcpy if src is constvictor2006-01-121-9/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3267 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Allow banning user from using angel function.scw2005-11-271-2/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3250 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add restriction to PERM_VIOLATELAWptt2005-11-151-2/+2
| | | | | | | | | | no chat no write no plan file git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3238 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* only PERM_ACCOUNTS could SetUserin22005-10-281-3/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3236 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* new police permission.ptt2005-10-221-1/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3229 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* changes mailalert to 1 bit only.ptt2005-10-131-1/+1
| | | | | | | | reserved other 7 trigers for updating current status on the fly when user is online. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3223 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* hide when debugsleeppiaip2005-09-281-3/+10
| | | | | | | try to prevent segv in waterball git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3216 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* prepare for connect6piaip2005-09-221-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3204 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* reduce mywrite segv (hope so)piaip2005-09-211-3/+11
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3198 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* GO convertion to chess frameworkscw2005-09-111-5/+9
| | | | | | | | | | | | | | * versus, personal and watching all work chess.c framework update * "pass" and "tie request" are distinguished * chess-specific key binding * post-game processing !!!NOTE!!! Chess protocals are NOT backward compatible RESTART WHOLE system to ensure correctness git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* pager=waterball made readablepiaip2005-09-081-15/+40
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3139 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Wide terminal rules.piaip2005-09-081-17/+47
| | | | | | | This time we have userlist and mailbox support. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3136 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* verbose message when login.piaip2005-09-071-2/+35
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3133 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Chess functions:scw2005-08-281-1/+0
| | | | | | | | | | | * chc machine readable log - http://www.elephantbase.net/protocol/cchess_pgn.htm - http://www.elephantbase.net/protocol/cchess_move.htm * chc and gomoku replay work * key binding 'z' in pmore() for chess replay * avoid crash when watching (the watchee's mateid is empty) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3105 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Complete last commitscw2005-08-281-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3103 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* angel caller may not login yet.kcwu2005-08-281-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3102 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1. fix compile error isnumber -> isdigitptt2005-08-191-1/+1
| | | | | | | 2. let old sysop can use 'H' to coak git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3064 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* screen_backup() & screen_restore() update:scw2005-08-171-8/+2
| | | | | | | | | * automatic allocate memory, save cursor location and backup * automatic restore screen, cursor location and free memory * works on screen lessening * no more crash on screen enlarged git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3051 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* include/common.h, mbbsd/friend.c: check buffer sizevictor2005-08-161-2/+1
| | | | | | | | include/fpg.h: highlight the bug mbbsd/talk.c: change that odd time_t worked as a boolean to int git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3046 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Crash when calling angel, fix r3038scw2005-08-161-7/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3043 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Gomoku convertion to chess.c frameworkscw2005-08-151-6/+15
| | | | | | | | | | | | | | | * versus, watching and personal playing * undo function removed due to the restriction of the framework currently chess.c framework update * resign confirm * invited peer can be watched !!!NOTE!!! Gomoku protocal not backward compatible RESTART WHOLE system to ensure correctness git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3036 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* integrate two giving-money codevictor2005-08-121-15/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3028 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* msg pretty printpiaip2005-08-081-6/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3008 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix talk requesting id display problem.scw2005-08-081-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3005 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* New chess frameworkscw2005-08-081-14/+55
| | | | | | | | | | | | | * Provides common parts of all chess games * Chinese chess fully ported * Improved watching * Leaving possibility to implement replaying !!!NOTE!!! Protocal not backward compatible, STOP ALL clients before upgrade. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3002 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* msgs updatespiaip2005-08-071-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3001 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Large Terminal Rulespiaip2005-08-061-7/+14
| | | | | | | New api: *lr family calls are used to pad and fir terminal width. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2996 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* large terminal rules.piaip2005-08-061-2/+2
| | | | | | | | | | | | | - vmsg with formats is now vmsgf. - deprecates vmsg_lines = i hope changes in admin does not make trouble because the old way looks like a mess within my terminal. - pending issue: = pressanykey_or_callangel is in oldway = showtitle, msg_seperator, and others should also be fixed git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2995 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* various money related fixpiaip2005-08-061-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2993 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* CHC new restriction available.scw2005-08-011-17/+21
| | | | | | | | *NOTE* chc protocal changed withOUT backward compatibility. STOP mbbsd before upgrading. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2974 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* dbcs aware talkpiaip2005-07-091-8/+65
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2923 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* comment on bad codekcwu2005-07-061-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2905 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix ticket#18 , it's true we don't have nick searchpiaip2005-07-061-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2899 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* apply rafan's (rafan.bbs@ptt2.cc) big patch to s/username/nickname/gvictor2005-07-041-10/+10
| | | | | | | turn off FOREIGN_REG by default in sample/pttbbs.conf git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2887 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix sig devide by zero bug,piaip2005-07-041-1/+1
| | | | | | | query user -> cuser.money git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2885 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Security Updatepiaip2005-07-031-9/+2
| | | | | | | | | | | | (1) **s (Ptt_prints): Only information can be queried by others will be revealed. i.e., **b(birthday), **u(utmp number) will be removed **m(money) will show level messages instead of real number (2) Reply will show as **X instead of converted message (3) Ansi (^V) mode in editor will display as **X. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2878 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* set sorted_way to 7 (by pid) in [嗨! 朋友] mode.in22005-06-241-6/+2
| | | | | | | or show nobody in the userlist when there are very few online users. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2862 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* better readability.in22005-06-141-38/+38
| | | | | | | | | real => adminmode, HAS_PERM() => HasUserPerm(), HasPerm() => HasBoardPerm(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2840 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fixed waterball vmsg:piaip2005-06-131-3/+7
| | | | | | | vmsg cannot support multiline. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2838 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* apply ansi system to more filespiaip2005-06-081-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* New style to specify ANSI escape commands.piaip2005-06-081-60/+60
| | | | | | | | | First introduced by pmore, but this hard work (to transform all files to new style) is made by Rong-en Fan (rafan). Thanks! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: friend counters not initialized.piaip2005-06-061-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2775 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remember last sort methodpiaip2005-06-061-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2774 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* pmore: formatting issuespiaip2005-06-031-0/+1
| | | | | | | talk.c: fixed more buffer bug. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2751 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* anti id spammerpiaip2005-05-291-1/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2737 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: number of bfriend in userlistin22005-05-191-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2729 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* don't save user data if shm corruptedkcwu2005-04-231-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2712 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix condition of friend test to avoid lookup filekcwu2005-03-271-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2679 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* statistickcwu2005-03-191-0/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2651 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove dead codekcwu2005-03-191-40/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add 'const' qualifiers on function parameters.kcwu2005-03-191-17/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2632 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* don't display board users on userlist in case of cooldownwens2005-03-191-1/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2631 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning: searchuser() getuser() API change, don't change query string ↵kcwu2005-03-151-4/+4
| | | | | | implicitly. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* user defined show 壽星 or notin22005-03-151-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2626 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove 壽星 (prevent violating 個人資料保護法)in22005-03-141-2/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2623 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* bugfix: some user will always stay in friends' friend list after logoutkcwu2005-03-141-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2620 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add comment about WYchuang@ptt's suggestionkcwu2005-03-121-0/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2598 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* move global variable xuser into local, save 512 bytes.kcwu2005-03-121-8/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* explicitly tell C compiler functions have no parameterkcwu2005-03-121-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* No talk/chess request allowed when watching Chinese chess.scw2005-03-091-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2585 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Reenable Chinese chess watching.scw2005-02-261-1/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2556 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* only users with PERM_LOGINOK instead of PERM_BASIC couldin22005-02-241-1/+1
| | | | | | | mail or forward articles. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2537 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix domenu's bugvictor2005-02-181-4/+6
| | | | | | | limit some function to permission PERM_LOGINOK git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2517 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix broadcast conditionkcwu2005-02-181-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2516 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Use chomp() instead of assigning '\0' directly.scw2005-02-121-1/+1
| | | | | | | Change a little code in searching of more() to reduce call of strlen(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2495 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change broadcast default prompt from 'y' to 'n', patched by ledia.kcwu2005-02-081-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2476 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix another friend[] overflowing in OUTTACACHEin22005-02-061-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2473 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix friend[] overflowing when using utmpserver.in22005-02-061-1/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2472 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* logout_friend_online() fault tolerantkcwu2005-02-061-16/+24
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2471 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * In generalnamecomplete(), complete as more as possible when space (' ')scw2005-02-051-10/+2
| | | | | | | | | | | | | | | is pressed. (As what <tab> does in most shell) * In all three completing functions (namecomplete, usercomplete and generalnamecomplete), return null string instead of partial matched name which makes users able to talk/annoy those they are not supposed to talk to (admins or cloaks). * Type of parameters of generalnamecomplete has typedefed and should be clearer. * New macro CompleteBoard and CompleteOnlineUser are defined since most of the usage of generalnamecomplete are the same. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2468 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Clean up unused code and commented code.scw2005-02-051-10/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2467 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace rand() with random() for better randomnesskcwu2005-02-041-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2460 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Chess country plan showing problem. Display country plan onscw2005-02-021-1/+1
| | | | | | | query also when viewing elo grade. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2451 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Allowing reply inviting request.scw2005-01-301-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2449 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use ctime4 for compat on x86_64wens2005-01-251-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2430 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use time4_t(uint32_t) instead of time_t for x86-64 arch.in22005-01-241-6/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2426 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix sorting problemvictor2004-12-131-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2376 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge ptt.linux againwens2004-12-111-23/+29
| | | | | | | | | | | WARNING! There are some major differences in SHM_t. All pointers storing offsets in SHM_t have been changed to indexes. When updating to this revision, please rebuild the whole tree and restart the entire BBS system (kill all users first, stop, and start). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2374 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* discard r2368 due to compilation failurein22004-12-061-20/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2371 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* lightweight sysop broadcastin22004-12-061-5/+19
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2370 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge ptt.linuxwens2004-12-051-14/+20
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2368 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add modifier "const" to some constantvictor2004-11-091-2/+2
| | | | | | | | remove a static char array of 60 bytes from mail.c:doforward avoid DDOS in mail.c:send_inner_mail git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2321 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Backup screen without hole. Save 8~11kb for normal user.kcwu2004-11-061-5/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2314 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add TODO for user list speed upkcwu2004-10-311-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2292 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* show chess rating not only in debug modekcwu2004-10-161-16/+82
| | | | | | | let user set his attitude about talk/play with others git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2252 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* display one more digit of game recordkcwu2004-10-091-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2232 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* calculate chess ELO ratingkcwu2004-10-081-0/+5
| | | | | | | only show rating in debug mode now git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2228 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* correct revision 2210victor2004-09-231-4/+4
| | | | | | | add reloadfcache to shmctl git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2209 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Check angel permission before starting conversation.scw2004-09-161-0/+8
| | | | | | | | Adding MAP_PRIVATE flag when getting MAP_ANON from mmap(). (on Linux, without this flag causes EINVAL) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2197 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Personal chess country data query done.scw2004-09-121-0/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2194 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Revert some A270 ~ A2A3 in Big5 back to F9FA ~ F9FD in Big5.scw2004-09-111-4/+4
| | | | | | | | These four symbols are not encoded in Unicode, so may be discarded when using UTF-8 encoding. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2191 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge back from branch victor.solarisvictor2004-09-101-0/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2189 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix chc bug, but still buggyvictor2004-09-091-8/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2184 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix r2178.victor.solaris@2177scw2004-09-031-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2177 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* domain_name_query is changed to cidr formatvictor2004-09-031-5/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2176 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* less screen copying in ofo water ball modevictor2004-08-261-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2167 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* USHM checking bug.scw2004-08-221-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2165 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use correct type: size_t/int/long/pointerin22004-07-301-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use int instead of longin22004-07-301-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2151 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Go game add color board (dirty hack @@),scw2004-07-251-1/+1
| | | | | | | and allow throwing waterball in games. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2144 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* No talk request when playing go and dark.scw2004-07-101-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2120 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* correcting mode strings.scw2004-07-101-16/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2119 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug in sending a mail in userlistin22004-07-051-2/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2115 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* GO game merged from FPG.scw2004-07-041-5/+15
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2113 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Wrong message.scw2004-06-241-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2080 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Angel leaving message.scw2004-06-241-10/+82
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2079 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace some prints() with outs(),kcwu2004-06-101-18/+18
| | | | | | | | | | | | replace some outs() with outc(), replace some fprintf() with fputs(), and so on. for performance. and don't treat user input as format string. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2055 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use 'const' keyword to reduce 7904 bytes data segmentkcwu2004-06-041-3/+3
| | | | | | | from 9320 to 1416 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2049 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove prototypes of not exist functionskcwu2004-06-041-1/+1
| | | | | | | use static keyword for local function git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2048 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Update passwd after choosen the angel.scw2004-05-281-3/+6
| | | | | | | And fix some bug on throwing wrong person. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2028 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1. send etc/foreign_expired_warn only when FOREIGN_REG_DAY > 0 for Ptt3ptt2004-05-271-1/+4
| | | | | | | | 2. fix build break from Angel git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2027 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix some bug and add some feature for angel.scw2004-05-271-4/+21
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2023 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ID hiding in WATER_NEW.scw2004-05-261-3/+13
| | | | | | | Wrong condition on angel finding. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2022 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Confirm for angel answering in ofo watermode.scw2004-05-251-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2021 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Only registered user can call angel.scw2004-05-251-4/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2020 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Merge from scw.angel.scw2004-05-241-30/+279
| | | | | | | | *NOTE* Before running this revision, please read PttCurrent board at telnet://ptt.cc or http://scwg.wiki.ptt.cc/-Angel git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2014 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* edit.c: just need to fopenvictor2004-05-191-0/+4
| | | | | | | talk.c: fix broken fd after canceling the request git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2003 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1.add [BC] when broadcasting messageptt2004-05-141-2/+3
| | | | | | | 2.change default of recommend git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1981 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* in log_file(), use LOG_VF if need to vfprintf().in22004-05-031-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1921 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change strange color of messageptt2004-04-301-3/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1899 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* chang format of log_fileptt2004-04-301-11/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1898 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* reoragnize functions ptt2004-04-241-18/+4
| | | | | | | | | mprints, pprints -> mouts remove useless refresh, pressanykey(), sleep,... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1833 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* integrate igetkey igetch egetchptt2004-04-241-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1828 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove useless functionsptt2004-04-231-1/+0
| | | | | | | integrate similiar functions git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1827 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* debug of seg fault finallyptt2004-04-231-3/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1823 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* debug of seg fault on userlistptt2004-04-231-3/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1822 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* debug of segfault on userlistptt2004-04-231-1/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1821 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revert cuser from pointer to buffer.ptt2004-04-211-34/+34
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 防堵利用不同id同時舉辦賭場ptt2004-04-141-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1752 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1.change outs pressanykey -> vmsgptt2004-04-141-10/+4
| | | | | | | 2.secrete chess git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1751 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge from outtacache branchin22004-04-041-3/+22
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix warning, including:scw2004-04-021-3/+2
| | | | | | | | | | Prototype differance of crypt() on linux. Adding _ISOC99_SOURCE to get declaration of snprintf() on linux. Including strings.h to get declaration of strcasecmp() on linux. Using mkstemp() instead of tempnam(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1679 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add mmap to cuser get ride of passwd_updateptt2004-03-311-35/+35
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1586 ↵ptt2004-03-121-0/+13
| | | | 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1501 ↵ptt2004-01-311-2/+2
| | | | 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add some comments for ofo water mode.in22004-01-161-5/+14
| | | | | | | set nkwbd default to 5, 5 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1484 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning freein22004-01-081-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1472 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix msg bound check bugscw2004-01-021-6/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1445 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* NOKILLWATERBALL done.in22004-01-011-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* NOKILLWATERBALL,in22004-01-011-1/+7
| | | | | | | | | | | do NOT kill(2) the process after sending a waterball, and check if there exists a waterball before read(2) from socket. this code is under testing and may have some bugs. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1441 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* redrawvictor2003-12-261-8/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1435 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix last commit bugvictor2003-12-251-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 'a' will not cause adding an exist friend, 'd' fixed, eithervictor2003-12-251-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Rewrite strip_ansi() (also move from vote.c to io.c).scw2003-12-241-1/+1
| | | | | | | | Using STRIP_ALL instead of 0 when calling strip_ansi. Fix some buffer overflow problem. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1428 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ask before add/del a friendvictor2003-12-241-0/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1425 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use open() instead of fopen() in log_file()in22003-12-071-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1405 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* let a global var be a local onevictor2003-11-291-5/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1382 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* init var "fore", "備註"->"心情"victor2003-11-201-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1353 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix wrong perm checking in query modevictor2003-10-291-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1276 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1270 ↵ptt2003-10-281-1/+1
| | | | 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix layoutvictor2003-10-271-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1269 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use assess if defined ASSESSvictor2003-10-271-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1266 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* complete assessvictor2003-10-271-5/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1264 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* completed assessvictor2003-10-161-8/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1251 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* show real boardfriend in userlistin22003-10-141-3/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1240 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add mode CHESSWATCHINGvictor2003-10-141-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1239 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use bsearch in login_friend_online()in22003-10-051-20/+7
| | | | | | | | | | save cpu but increase SHM_t (sizeof(short) * MAX_ACTIVE) bytes WARNING: SHM_t has been changed git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1212 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ask before watching a chc game.victor2003-09-281-2/+4
| | | | | | | fix wrong flow git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1208 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* talk.c : redrawvictor2003-09-201-2/+6
| | | | | | | | friend.c: uident should be wall thanks akiecs.bbs@ptt2 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1189 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove 打譜 in userlistvictor2003-09-191-15/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1188 63ad8ddf-47c3-0310-b6dd-a9e9d9715204