Browse Source

fix: single reply in no prefix

master
zhayujie 1 year ago
parent
commit
efd12dac35
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      .gitignore
  2. +1
    -1
      channel/wechat/wechat_channel.py

+ 2
- 1
.gitignore View File

@@ -8,4 +8,5 @@ config.json
QR.png
nohup.out
tmp
plugins.json
plugins.json
itchat.pkl

+ 1
- 1
channel/wechat/wechat_channel.py View File

@@ -95,7 +95,7 @@ class WechatChannel(Channel):
return
if match_prefix:
content = content.replace(match_prefix, '', 1).strip()
else:
elif match_prefix is None:
return
context = Context()
context.kwargs = {'isgroup': False, 'msg': msg, 'receiver': other_user_id, 'session_id': other_user_id}


Loading…
Cancel
Save