diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-08-08 03:54:19 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-08-08 03:54:19 +0800 |
commit | 217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38 (patch) | |
tree | d606f28754902e278a49ff81a20c5c1986b4530a | |
parent | 283ca380c6ae8a67edcfb4c4fc18e4baac365144 (diff) | |
download | pttbbs-217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38.tar pttbbs-217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38.tar.gz pttbbs-217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38.tar.bz2 pttbbs-217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38.tar.lz pttbbs-217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38.tar.xz pttbbs-217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38.tar.zst pttbbs-217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38.zip |
Fix crosspost log checker
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6048 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-x | pttbbs/util/pyutil/pttpost.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/util/pyutil/pttpost.py b/pttbbs/util/pyutil/pttpost.py index 04ae0a64..ebd6dc24 100755 --- a/pttbbs/util/pyutil/pttpost.py +++ b/pttbbs/util/pyutil/pttpost.py @@ -35,7 +35,7 @@ CommentsFormatRe = ( # format: "※ " ANSI_COLOR(1;32) "%s" ANSI_COLOR(0;32) ":轉錄至" %s def IsCrossPostLog(buf): return (buf.startswith("※ " + ANSI_COLOR(1,32)) and - buf.index(ANSI_COLOR(0,32) + ':轉錄至' > 0)) + buf.index(ANSI_COLOR(0,32) + ':轉錄至') > 0) def ParseComment(buf): """Parses a buffer for known comment formats. |