summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-08 02:12:55 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-08 02:12:55 +0800
commit68b60cb8d7601ddafd322184a79cd3e4d11688dd (patch)
treee2c3d0e1abf7d56082fd017702b5a9ddc0614f4f /mbbsd/talk.c
parent25712a5f0eea228f8bbe09257e8c1b15a50c0241 (diff)
downloadpttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.gz
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.bz2
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.lz
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.xz
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.zst
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.zip
calculate chess ELO rating
only show rating in debug mode now git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2228 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 66613e99..a85e3d75 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1634,9 +1634,14 @@ descript(int show_mode, userinfo_t * uentp, time_t diff)
uentp->five_lose, uentp->five_tie);
return description;
case 3:
+#ifdef DEBUG
+ snprintf(description, sizeof(description),
+ "%d", uentp->chess_elo_rating);
+#else
snprintf(description, sizeof(description),
"%3d/%3d/%3d", uentp->chc_win,
uentp->chc_lose, uentp->chc_tie);
+#endif
return description;
default:
syslog(LOG_WARNING, "damn!!! what's wrong?? show_mode = %d",