summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-07 03:52:57 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-07 03:52:57 +0800
commitfc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b (patch)
treef3f43d69f0b65589a931b98a634e3b27d2c5d136 /mbbsd/chat.c
parentbc3952ec2fcbddd3c4820f21c8490ccd8c728a1d (diff)
downloadpttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar
pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.gz
pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.bz2
pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.lz
pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.xz
pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.zst
pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.zip
clean up
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1166 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index 55d3129d..5493608f 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -295,43 +295,6 @@ chat_cmd(char *buf, int fd)
return 0;
}
-#if 0
-static char *
-select_address()
-{
- int c;
- FILE *fp;
- char nametab[25][90];
- char iptab[25][18], buf[80];
-
- move(1, 0);
- clrtobot();
- outs("\n \033[36m【找個地方抬抬槓吧!】\033[m "
- "◎ 【以下為本站登記有案的茶樓】 \n");
- trans_buffer[0] = 0;
- if ((fp = fopen("etc/teashop", "r"))) {
- for (c = 0; fscanf(fp, "%s%s", iptab[c], nametab[c]) != EOF; c++) {
- snprintf(buf, sizeof(buf),
- "\n (\033[36m%d\033[0m) %-30s [%s]",
- c + 1, nametab[c], iptab[c]);
- outs(buf);
- }
- getdata(20, 10, "★\033[32m 請選擇,[0]離開:\033[0m", buf, 3,
- LCECHO);
- if (buf[1])
- buf[0] = (buf[0] + 1) * 10 + (buf[1] - '1');
- else
- buf[0] -= '1';
- if (buf[0] >= 0 && buf[0] < c)
- strlcpy(trans_buffer, iptab[(int)buf[0]], sizeof(trans_buffer));
- } else {
- outs("本站沒有登記任何合格茶樓");
- pressanykey();
- }
- return trans_buffer;
-}
-#endif
-
#define MAXLASTCMD 6
static int chatid_len = 10;