mirror of https://github.com/velour/catbase.git
meme: disable direct URL memes
GitHub noticed this is a security problem, so I am disabling it.
This commit is contained in:
parent
1f7ce69674
commit
3964e1f4b2
|
@ -194,7 +194,9 @@ func (p *MemePlugin) sendMeme(c bot.Connector, channel, channelName, msgID strin
|
||||||
formats := p.c.GetMap("meme.memes", defaultFormats)
|
formats := p.c.GetMap("meme.memes", defaultFormats)
|
||||||
imgURL, ok := formats[format]
|
imgURL, ok := formats[format]
|
||||||
if !ok {
|
if !ok {
|
||||||
imgURL = format
|
log.Debug().Msgf("Bad meme request: %v, %v", from, text)
|
||||||
|
p.bot.Send(c, bot.Message, channel, fmt.Sprintf("%v tried to send me a bad meme request.", from.Name))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
stampURL := p.stamp(c, format, from.ID)
|
stampURL := p.stamp(c, format, from.ID)
|
||||||
|
|
Loading…
Reference in New Issue