summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
Commit message (Collapse)AuthorAgeFilesLines
* - (internal) code refinepiaip2008-04-051-8/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4084 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4083 ↵piaip2008-04-051-1/+1
| | | | 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix friend description length on screenpiaip2008-04-051-2/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4082 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix a 7-year bug? force_open should really "force" open file.piaip2008-04-031-1/+1
| | | | | | | - (internal) code refine - drop MAXPATHLEN and change few magic number (256) to PATHLEN. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4072 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - code clean upkcwu2008-03-271-5/+6
| | | | | | | - enlarge buffer size to prevent overflow git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4030 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - prevent buffer overflow issues.piaip2008-03-241-18/+17
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4017 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix buffer overflow (due to some invalid friend file containing very long id)piaip2008-03-241-3/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4015 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - improve the message and explain for fix_aloha.piaip2008-02-191-5/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3926 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - friend: use constants, prevent magic numberspiaip2008-02-131-2/+2
| | | | | | | - mbbsd: guests do not need adding new favs git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3911 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Birthday is gone...victor2007-12-221-1/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3721 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Happy birthday, kcwu & rafan!! :Dvictor2007-12-211-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3718 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - add "fix aloha" for userspiaip2007-12-171-15/+58
| | | | | | | - general message finetune git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3701 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * extract common functions as library.kcwu2007-12-121-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3673 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - security hole: after BM quoting files from other board, they can editpiaip2007-12-031-3/+21
| | | | | | | | list of other boards. Also introducted privacy issue. - Unless someone defineds clear rule, we disable this function for BMs first. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3618 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * use strtok_r() instead of strtok(). fix bad strtok() usages.kcwu2007-06-191-2/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3545 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning freedvictor2006-05-171-3/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3357 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: delete a user called USER from user list also removes others called ↵victor2006-05-171-2/+30
| | | | | | USERetc git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3356 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add a lot of assertions to ensure bid is in correct range when access via bid.kcwu2006-04-081-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3341 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix non-portable strtok() usage.kcwu2006-03-231-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3293 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
* verbose message when login.piaip2005-09-071-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3133 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* partially fix #35piaip2005-09-041-5/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3128 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* include/common.h, mbbsd/friend.c: check buffer sizevictor2005-08-161-14/+14
| | | | | | | | 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
* - fix msg errorpiaip2005-07-231-2/+2
| | | | | | | - make old compilers happy git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2945 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* adjust cp log color/stylepiaip2005-07-221-4/+4
| | | | | | | and we should update board record. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2940 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ticket#30: realtime board perm updatepiaip2005-07-221-0/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2938 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge HAVE_PERM() into HasUserPerm()in22005-06-141-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2842 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* New style to specify ANSI escape commands.piaip2005-06-081-1/+1
| | | | | | | | | 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
* add 'const' qualifiers on function parameters.kcwu2005-03-191-7/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2632 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning: searchuser() getuser() API change, don't change query string ↵kcwu2005-03-151-3/+3
| | | | | | implicitly. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix XXXin22005-03-121-6/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2599 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
* warning free: "static" should be in front of "const"kcwu2005-03-031-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2569 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Adding commonts for upper bound of lists and enlargingscw2004-12-191-8/+8
| | | | | | | water list size. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2381 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* some help pages are showed from filevictor2004-12-021-1/+1
| | | | | | | | more comments remove dirty hack in fav.c since it's safe now git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2360 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix file_delete_lineptt.linux@2330ptt2004-11-171-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2330 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: when deleting an user, the aloha record won't be deleted.victor2004-09-201-35/+40
| | | | | | | add file: file.c, move some useful subroutine out of friend.c git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2205 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace some prints() with outs(),kcwu2004-06-101-2/+2
| | | | | | | | | | | | 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
* Merge from scw.angel.scw2004-05-241-1/+1
| | | | | | | | *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
* revert cuser from pointer to buffer.ptt2004-04-211-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug in friend_load_real()in22004-04-141-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1761 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug r1674in22004-04-021-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1677 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* reuse codein22004-04-021-39/+38
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1674 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add mmap to cuser get ride of passwd_updateptt2004-03-311-2/+2
| | | | 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@1336 ↵ptt2003-11-151-3/+2
| | | | 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use bsearch in login_friend_online()in22003-10-051-0/+2
| | | | | | | | | | 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
* talk.c : redrawvictor2003-09-201-1/+1
| | | | | | | | 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
* clean upkcwu2003-09-071-12/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1166 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* code cleanupkcwu2003-09-061-15/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1162 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* wrong spell and missing :Pvictor2003-08-281-3/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1135 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* It's not necessary to reload friend and eject list at the same time.victor2003-08-281-27/+32
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1134 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning freein22003-05-181-4/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@863 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* *** empty log message ***ptt2003-05-161-7/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@857 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* �O��/�����W��=>256in22003-04-281-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@813 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* may be not closedvictor2003-04-161-3/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@799 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * there are so many fopen() without fclose()kcwu2003-01-201-6/+9
| | | | | | | | * assert fopen() * clean up git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@638 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* make gcc33 happyin22003-01-011-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix the numbers of selection bugkcwu2002-07-281-5/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@451 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* sprintf() -> snprintf()in22002-07-231-10/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@435 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* indent -i4in22002-07-211-13/+13
| | | | | | | fix indent's word error git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* strcpy() -> strlcpy()in22002-07-211-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@428 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* indentin22002-07-061-168/+143
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@415 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix memory bugin22002-07-021-16/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@400 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* *** empty log message ***lwms2002-06-191-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@330 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* global variable move to var.cin22002-06-041-36/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@280 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change getdata() constant to sizeof()in22002-04-291-4/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@131 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix logout_friend()in22002-04-101-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@93 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* SYSOP/BM could export board-friend listin22002-04-061-16/+25
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@84 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ofo's water show 'x' for dead usersin22002-03-091-2/+2
| | | | | | | my_write() input uin if already got it git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@11 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Initial revisionin22002-03-071-0/+509
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1 63ad8ddf-47c3-0310-b6dd-a9e9d9715204