5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-25 09:51:36 +00:00

Remove markdown for giphy

This commit is contained in:
Wim 2015-10-28 00:16:42 +01:00
parent 008ea94b53
commit 5282cdaccd

View File

@ -88,7 +88,7 @@ func (b *Bridge) handleMatter() {
b.i.SendRaw("NAMES " + b.Config.IRC.Channel) b.i.SendRaw("NAMES " + b.Config.IRC.Channel)
case "!gif": case "!gif":
message.Text = b.giphyRandom(strings.Fields(strings.Replace(message.Text, "!gif ", "", 1))) message.Text = b.giphyRandom(strings.Fields(strings.Replace(message.Text, "!gif ", "", 1)))
b.Send(b.Config.IRC.Nick, "![img]("+message.Text+")") b.Send(b.Config.IRC.Nick, message.Text)
} }
texts := strings.Split(message.Text, "\n") texts := strings.Split(message.Text, "\n")
for _, text := range texts { for _, text := range texts {