webshot patterns without https?://

This commit is contained in:
Akamaru 2015-06-28 19:16:11 +02:00
parent 6d78648182
commit baeae693bd
2 changed files with 6 additions and 5 deletions

3
.gitignore vendored
View File

@ -38,4 +38,5 @@ plugins/ponyfaces.lua
plugins/rss_old.lua plugins/rss_old.lua
plugins/gfycat.lua plugins/gfycat.lua
plugins/yourls.lua plugins/yourls.lua
plugins/youtube_channel.lua plugins/youtube_channel.lua
plugins/pr0gramm.lua

View File

@ -59,10 +59,10 @@ return {
"/scrot [T|S|E|N|M|L|X|F] [URL]: Fertigt Bild mit bestimmter Größe an (T = tiny, F = full)" "/scrot [T|S|E|N|M|L|X|F] [URL]: Fertigt Bild mit bestimmter Größe an (T = tiny, F = full)"
}, },
patterns = { patterns = {
"^/webshot ([T|t|S|s|E|e|N|n|M|m|L|l|X|x|F|f]) (https?://[%w-_%.%?%.:,/%+=&#!]+)$", "^/webshot ([T|t|S|s|E|e|N|n|M|m|L|l|X|x|F|f]) ([%w-_%.%?%.:,/%+=&#!]+)$",
"^/scrot ([T|t|S|s|E|e|N|n|M|m|L|l|X|x|F|f]) (https?://[%w-_%.%?%.:,/%+=&#!]+)$", "^/scrot ([T|t|S|s|E|e|N|n|M|m|L|l|X|x|F|f]) ([%w-_%.%?%.:,/%+=&#!]+)$",
"^/webshot (https?://[%w-_%.%?%.:,/%+=&#!]+)$", "^/webshot ([%w-_%.%?%.:,/%+=&#!]+)$",
"^/scrot (https?://[%w-_%.%?%.:,/%+=&#!]+)$" "^/scrot ([%w-_%.%?%.:,/%+=&#!]+)$"
}, },
run = run run = run
} }