소스 검색

fix: prefix match

zhayujie 3 년 전
부모
커밋
197f0ae4b8
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      channel/wechat/wechat_channel.py

+ 1 - 2
channel/wechat/wechat_channel.py

@@ -146,9 +146,8 @@ class WechatChannel(Channel):
         if reply_text:
             self.send(reply_text, msg['User']['UserName'])
 
-
     def check_prefix(self, content, prefix_list):
         for prefix in prefix_list:
-            if content.lower().startswith(prefix.lower()):
+            if content.startswith(prefix):
                 return prefix
         return None