Use ?split=false in dogify plugin

This commit is contained in:
Akamaru 2015-06-07 22:50:19 +02:00
parent fc4c3eb4cf
commit a752cabca5

View File

@ -1,8 +1,8 @@
local function run(msg, matches)
local base = "http://dogr.io/"
local path = string.gsub(matches[1], " ", "")
local url = base .. path .. '.png'
local urlm = "https?://[%w-_%.%?%.:/%+=&]+"
local path = string.gsub(matches[1], " ", "%%20")
local url = base .. path .. '.png?split=false&.png'
local urlm = "https?://[%%%w-_%.%?%.:/%+=&]+"
if string.match(url, urlm) == url then
local receiver = get_receiver(msg)