浏览代码

Merge pull request #1221 from Zhaoyi-Yan/patch-3

add \n after @nickname for group chat
master
Jianglang GitHub 1年前
父节点
当前提交
65b9542599
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      channel/chat_channel.py

+ 1
- 1
channel/chat_channel.py 查看文件

@@ -220,7 +220,7 @@ class ChatChannel(Channel):
reply = super().build_text_to_voice(reply.content)
return self._decorate_reply(context, reply)
if context.get("isgroup", False):
reply_text = "@" + context["msg"].actual_user_nickname + " " + reply_text.strip()
reply_text = "@" + context["msg"].actual_user_nickname + "\n" + reply_text.strip()
reply_text = conf().get("group_chat_reply_prefix", "") + reply_text
else:
reply_text = conf().get("single_chat_reply_prefix", "") + reply_text


正在加载...
取消
保存