Explorar o código

fix: prefix match

zhayujie %!s(int64=3) %!d(string=hai) anos
pai
achega
197f0ae4b8
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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