summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-26 01:34:33 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-26 01:34:33 +0800
commitdda27c3337bfe813cff4f7fc8c3f953a9dce3c85 (patch)
treee0267efe3b5b3724e6548430732da9ac40ef9326 /mbbsd
parentc1689f74c8bfc6ff538264dad3335f128242fc02 (diff)
downloadpttbbs-dda27c3337bfe813cff4f7fc8c3f953a9dce3c85.tar
pttbbs-dda27c3337bfe813cff4f7fc8c3f953a9dce3c85.tar.gz
pttbbs-dda27c3337bfe813cff4f7fc8c3f953a9dce3c85.tar.bz2
pttbbs-dda27c3337bfe813cff4f7fc8c3f953a9dce3c85.tar.lz
pttbbs-dda27c3337bfe813cff4f7fc8c3f953a9dce3c85.tar.xz
pttbbs-dda27c3337bfe813cff4f7fc8c3f953a9dce3c85.tar.zst
pttbbs-dda27c3337bfe813cff4f7fc8c3f953a9dce3c85.zip
make 's' search_board in board-list work with this case:
2 boards with same prefix and user input for exactly the shorter one. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3209 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c4
-rw-r--r--mbbsd/mbbsd.c2
-rw-r--r--mbbsd/name.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 2256c6f4..f84aa519 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -384,6 +384,10 @@ search_board(void)
FreeNameList();
toplev = NULL;
+#ifdef DEBUG
+ vmsg(genbuf);
+#endif
+
for (num = 0; num < brdnum; num++)
if (!strcasecmp(B_BH(&nbrd[num])->brdname, genbuf))
return num;
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index c556c908..593208d5 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -239,7 +239,7 @@ abort_bbs_debug(int sig)
sigaddset(&sigset, SIGXCPU);
sigprocmask(SIG_UNBLOCK, &sigset, NULL);
-#define CRASH_MSG ANSI_COLOR(0) "\r\n程式異常, 立刻斷線. 請洽 PttBug 板詳述你發生的問題.\n"
+#define CRASH_MSG ANSI_COLOR(0) "\r\n程式異常, 立刻斷線. 請洽 PttBug 板詳述你發生的問題.\r\n"
write(1, CRASH_MSG, sizeof(CRASH_MSG));
/* close all file descriptors (including the network connection) */
diff --git a/mbbsd/name.c b/mbbsd/name.c
index 85c849a7..83dcf373 100644
--- a/mbbsd/name.c
+++ b/mbbsd/name.c
@@ -111,7 +111,7 @@ InList(const word_t * list, const char *name)
const word_t *p;
for (p = list; p; p = p->next)
- if (!strcmp(p->word, name))
+ if (!strcasecmp(p->word, name))
return 1;
return 0;
}