diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-16 21:41:07 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-16 21:41:07 +0800 |
commit | eaa868e5c10158c2d8ca7fb623b9f522e495a829 (patch) | |
tree | 5032de1e0c62c77e31dc07c35a5bb34bc4cddae2 /mbbsd/talk.c | |
parent | 64f4260e432c06146fc866eb5c74449a59f3deeb (diff) | |
download | pttbbs-eaa868e5c10158c2d8ca7fb623b9f522e495a829.tar pttbbs-eaa868e5c10158c2d8ca7fb623b9f522e495a829.tar.gz pttbbs-eaa868e5c10158c2d8ca7fb623b9f522e495a829.tar.bz2 pttbbs-eaa868e5c10158c2d8ca7fb623b9f522e495a829.tar.lz pttbbs-eaa868e5c10158c2d8ca7fb623b9f522e495a829.tar.xz pttbbs-eaa868e5c10158c2d8ca7fb623b9f522e495a829.tar.zst pttbbs-eaa868e5c10158c2d8ca7fb623b9f522e495a829.zip |
show ������������ in user list
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@575 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 52f35173..76c1276f 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.94 2002/09/20 13:37:46 in2 Exp $ */ +/* $Id: talk.c,v 1.95 2002/11/16 13:41:07 kcwu Exp $ */ #include "bbs.h" #define QCAST int (*)(const void *, const void *) @@ -10,7 +10,7 @@ static char *sig_des[] = { "°«Âû", "²á¤Ñ", "", "¤U´Ñ", "¶H´Ñ", "·t´Ñ" }; -#define MAX_SHOW_MODE 3 +#define MAX_SHOW_MODE 4 #define M_INT 15 /* monitor mode update interval */ #define P_INT 20 /* interval to check for page req. in * talk/chat */ @@ -31,7 +31,7 @@ typedef struct pickup_t { /* °O¿ý friend ªº user number */ // -#define PICKUP_WAYS 6 +#define PICKUP_WAYS 7 static char *fcolor[11] = { "", "\033[36m", "\033[32m", "\033[1;32m", @@ -1457,6 +1457,12 @@ descript(int show_mode, userinfo_t * uentp, time_t diff) uentp->five_lose, uentp->five_tie); description[20] = 0; return description; + case 3: + snprintf(description, sizeof(description), + "%3d/%3d/%3d", uentp->chc_win, + uentp->chc_lose, uentp->chc_tie); + description[20] = 0; + return description; default: syslog(LOG_WARNING, "damn!!! what's wrong?? show_mode = %d", show_mode); @@ -1622,10 +1628,10 @@ draw_pickup(int drawall, pickup_t * pickup, int pickup_way, int show_pid, int myfriend, int friendme, int bfriend, int badfriend) { char *msg_pickup_way[PICKUP_WAYS] = { - "¶Ù! ªB¤Í", "ºô¤Í¥N¸¹", "ºô¤Í°ÊºA", "µo§b®É¶¡", "¨Ó¦Û¦ó¤è", "¤¤l´Ñ " + "¶Ù! ªB¤Í", "ºô¤Í¥N¸¹", "ºô¤Í°ÊºA", "µo§b®É¶¡", "¨Ó¦Û¦ó¤è", " ¤¤l´Ñ ", " ¶H´Ñ " }; char *MODE_STRING[MAX_SHOW_MODE] = { - "¬G¶m", "¦n¤Í´yz", "¤¤l´Ñ¾ÔÁZ" + "¬G¶m", "¦n¤Í´yz", "¤¤l´Ñ¾ÔÁZ", "¶H´Ñ¾ÔÁZ" }; char pagerchar[5] = "* -Wf"; @@ -2089,7 +2095,7 @@ userlist(void) break; case 'S': /* Åã¥Ü¦n¤Í´yz */ - show_mode = (++show_mode) % MAX_SHOW_MODE; + show_mode = (show_mode+1) % MAX_SHOW_MODE; redrawall = redraw = 1; break; |