Compare commits
No commits in common. "3bc33f1d648c58c6d4580a8d918ba6e05a62d97d" and "23ca86e75cbdbcecc801555f243029e59976d68b" have entirely different histories.
3bc33f1d64
...
23ca86e75c
@ -35,12 +35,12 @@ func NotifyRemoveFromChatroom(m *plugin.MessageContext) {
|
|||||||
// 如果是被移出群聊,推送到配置的用户
|
// 如果是被移出群聊,推送到配置的用户
|
||||||
if strings.HasPrefix(m.Content, "你被\"") && strings.HasSuffix(m.Content, "\"移出群聊") {
|
if strings.HasPrefix(m.Content, "你被\"") && strings.HasSuffix(m.Content, "\"移出群聊") {
|
||||||
// 取出群名称
|
// 取出群名称
|
||||||
groupInfo, err := service.GetFriendInfoById(m.FromUser)
|
groupName, err := service.GetFriendInfoById(m.FromUser)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 组装消息
|
// 组装消息
|
||||||
msg := fmt.Sprintf("#移除群聊提醒\n\n群Id: %s\n群名称: %s\n事件: %s", m.FromUser, groupInfo.Nickname, m.Content)
|
msg := fmt.Sprintf("#移除群聊提醒\n\n群Id: %s\n群名称: %s\n事件: %s", m.FromUser, groupName, m.Content)
|
||||||
|
|
||||||
for _, user := range config.Conf.System.NewFriendNotify.ToUser {
|
for _, user := range config.Conf.System.NewFriendNotify.ToUser {
|
||||||
if user != "" {
|
if user != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user