url_title ignore twitch

This commit is contained in:
2015-04-21 15:59:09 +02:00
parent f5411aecb7
commit 1e53942a9e
2 changed files with 23 additions and 4 deletions

View File

@@ -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