summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-27 13:44:42 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-27 13:44:42 +0800
commit295472e4dc9ba12da3ae2c638f3192caacd7ae71 (patch)
tree4a244b77282adb9b2a450f3df33b9306e2506eac /mbbsd/board.c
parent78611c8b4983d348876b2fd922935b118e39ac9a (diff)
downloadpttbbs-295472e4dc9ba12da3ae2c638f3192caacd7ae71.tar
pttbbs-295472e4dc9ba12da3ae2c638f3192caacd7ae71.tar.gz
pttbbs-295472e4dc9ba12da3ae2c638f3192caacd7ae71.tar.bz2
pttbbs-295472e4dc9ba12da3ae2c638f3192caacd7ae71.tar.lz
pttbbs-295472e4dc9ba12da3ae2c638f3192caacd7ae71.tar.xz
pttbbs-295472e4dc9ba12da3ae2c638f3192caacd7ae71.tar.zst
pttbbs-295472e4dc9ba12da3ae2c638f3192caacd7ae71.zip
check if sort fav
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@730 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index ec2fd372..b61854fa 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.103 2003/03/27 05:10:21 victor Exp $ */
+/* $Id: board.c,v 1.104 2003/03/27 05:44:42 in2 Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -1159,16 +1159,21 @@ choose_board(int newflag)
keyword, sizeof(keyword), DOECHO);
brdnum = -1;
break;
- case 'S':
- cuser.uflag ^= BRDSORT_FLAG;
- if(yank_flag == 0){
- if(cuser.uflag & BRDSORT_FLAG)
- qsort(&fav->b, fav->nDatas, sizeof(fav_board_t),
- favcmpboardclass);
- else
- qsort(&fav->b, fav->nDatas, sizeof(fav_board_t),
- favcmpboardname);
- }
+ case 'S':{
+ char input[4];
+ move(b_lines - 2, 0);
+ prints("重新排序看板 "
+ "\033[1;33m(注意, 這個動作會覆寫原來設定)\033[m \n");
+ getdata(b_lines - 1, 0,
+ "排序方式 (1)按照板名排序 (2)按照類別排序 ==> [0]取消 ",
+ input, sizeof(input), DOECHO);
+ if( input[0] == '1' )
+ qsort(&fav->b, fav->nDatas, sizeof(fav_board_t),
+ favcmpboardname);
+ else if( input[0] == '2' )
+ qsort(&fav->b, fav->nDatas, sizeof(fav_board_t),
+ favcmpboardclass);
+ }
brdnum = -1;
break;
case 'y':