From 494768b3cc1f4050248e7395a97be5d19d7f5097 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 17 Oct 2011 14:04:12 +0000 Subject: reply/forward prefix should be case insensitive. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/stuff.c | 4 ++-- 1 file 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 -- cgit v1.2.3