From 2dbe0eb55729620ffdfdb7e4f10003564d79c7e1 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 5 Nov 2016 01:11:28 +0100 Subject: Add support for dynamic IconURL (slack). Closes #43 --- bridge/xmpp/xmpp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bridge/xmpp') diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 164284e5..51237a08 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -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 } -- cgit v1.2.3