mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-07 17:04:05 +00:00
Add support for dynamic IconURL (slack). Closes #43
This commit is contained in:
@ -71,7 +71,8 @@ func (b *Bxmpp) Origin() string {
|
||||
|
||||
func (b *Bxmpp) Send(msg config.Message) error {
|
||||
flog.Debugf("Receiving %#v", msg)
|
||||
b.xc.Send(xmpp.Chat{Type: "groupchat", Remote: msg.Channel + "@" + b.Config.Muc, Text: msg.Username + msg.Text})
|
||||
nick := config.GetNick(&msg, b.Config)
|
||||
b.xc.Send(xmpp.Chat{Type: "groupchat", Remote: msg.Channel + "@" + b.Config.Muc, Text: nick + msg.Text})
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user