fix: single reply in no prefix

This commit is contained in:
zhayujie
2023-03-25 02:54:46 +08:00
parent e071b6c1b4
commit efd12dac35
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

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

View File

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