url_title ignore twitch
This commit is contained in:
parent
f5411aecb7
commit
1e53942a9e
22
.gitignore
vendored
22
.gitignore
vendored
@ -1,5 +1,23 @@
|
||||
res/
|
||||
data/
|
||||
.luarocks
|
||||
.db
|
||||
*.db
|
||||
*.db
|
||||
plugins/alive.lua
|
||||
plugins/bitly.lua
|
||||
plugins/danbooru.lua
|
||||
plugins/danbooru2.lua
|
||||
plugins/deviantart.lua
|
||||
plugins/facebook.lua
|
||||
plugins/facebook_photo.lua
|
||||
plugins/facebook_video.lua
|
||||
plugins/gender.lua
|
||||
plugins/github.lua
|
||||
plugins/googl.lua
|
||||
plugins/ip_info.lua
|
||||
plugins/konachan.lua
|
||||
plugins/konachan_nsfw.lua
|
||||
plugins/page2image.lua
|
||||
plugins/pagespeed_insights.lua
|
||||
plugins/ping_adress.lua
|
||||
plugins/test.lua
|
||||
plugins/twitch.lua
|
@ -35,7 +35,8 @@ function run(msg, matches)
|
||||
title == "Moved Permanently" or
|
||||
string.match(title, "deviantArt") or
|
||||
string.match(title, "twitch") or
|
||||
string.match(title, "eBay</title>") then
|
||||
string.match(title, "eBay</title>") or
|
||||
string.match(title, "Twitch") then
|
||||
print('Invalide, da "'..title..'"')
|
||||
else
|
||||
return title
|
||||
@ -45,7 +46,7 @@ function run(msg, matches)
|
||||
return {
|
||||
description = "Postet URL-Titel",
|
||||
usage = "Irgendein Link",
|
||||
patterns = {"(https?://[%w-_%.%?%.:/%+=&]+)$",},
|
||||
patterns = {"^(https?://[%w-_%.%?%.:,/%+=&]+)$",},
|
||||
run = run
|
||||
}
|
||||
end
|
Reference in New Issue
Block a user