diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-10-05 04:01:23 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-10-05 04:01:23 +0000 |
commit | a5eabbb5359edf774ac7dcb8794ee820f555ef76 (patch) | |
tree | 8bfee072a322065a37ff895eec4bea1758dd82ba /tipper/subst.cpp | |
parent | 6ec3acedb40bf8f499cbb00e20c2126367c211fc (diff) |
stip '[size]' bbcodes
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@355 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/subst.cpp')
-rw-r--r-- | tipper/subst.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tipper/subst.cpp b/tipper/subst.cpp index aeed3ac..266e8dd 100644 --- a/tipper/subst.cpp +++ b/tipper/subst.cpp @@ -28,6 +28,11 @@ void StripBBCodesInPlace(TCHAR *text) { read++;// skip the ']'
} else if(len - read >= 8 && (_tcsnicmp(text + read, _T("[/color]"), 8) == 0))
read += 8;
+ else if(len - read >= 5 && (_tcsnicmp(text + read, _T("[size"), 5) == 0)) {
+ while(read < len && text[read] != L']') read++;
+ read++;// skip the ']'
+ } else if(len - read >= 7 && (_tcsnicmp(text + read, _T("[/size]"), 7) == 0))
+ read += 7;
else {
if(text[read] != text[write]) text[write] = text[read];
read++; write++;
|