summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-10-17 22:04:12 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-10-17 22:04:12 +0800
commit494768b3cc1f4050248e7395a97be5d19d7f5097 (patch)
treec55670b4cb2460a931d4c030e74e16ee0d613f15
parent7be837c5370eaf21761db041068bd6329ed38c16 (diff)
downloadpttbbs-494768b3cc1f4050248e7395a97be5d19d7f5097.tar
pttbbs-494768b3cc1f4050248e7395a97be5d19d7f5097.tar.gz
pttbbs-494768b3cc1f4050248e7395a97be5d19d7f5097.tar.bz2
pttbbs-494768b3cc1f4050248e7395a97be5d19d7f5097.tar.lz
pttbbs-494768b3cc1f4050248e7395a97be5d19d7f5097.tar.xz
pttbbs-494768b3cc1f4050248e7395a97be5d19d7f5097.tar.zst
pttbbs-494768b3cc1f4050248e7395a97be5d19d7f5097.zip
reply/forward prefix should be case insensitive.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/stuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/stuff.c b/pttbbs/mbbsd/stuff.c
index f83c6f37..c37abae1 100644
--- a/pttbbs/mbbsd/stuff.c
+++ b/pttbbs/mbbsd/stuff.c
@@ -42,10 +42,10 @@ const char*
subject_ex(const char *title, int *ptype)
{
do {
- if (str_starts_with(title, str_reply)) {
+ if (str_case_starts_with(title, str_reply)) {
title += strlen(str_reply);
ptype = _set_ptype(ptype, SUBJECT_REPLY);
- } else if (str_starts_with(title, str_forward)) {
+ } else if (str_case_starts_with(title, str_forward)) {
title += strlen(str_forward);
ptype = _set_ptype(ptype, SUBJECT_FORWARD);
#ifdef USE_LEGACY_FORWARD