something

This commit is contained in:
Akamaru 2015-07-31 18:01:10 +02:00
parent 67b99a8c1c
commit f64c8f25d2
3 changed files with 5 additions and 2 deletions

4
.gitignore vendored
View File

@ -46,4 +46,6 @@ plugins/flickr.lua
plugins/flickr_search.lua
plugins/google_books.lua
plugins/safebrowsing.lua
plugins/stats2.lua
plugins/stats2.lua
plugins/help2.lua
plugins/miiverse.lua

View File

@ -10,7 +10,7 @@ end
return {
description = "Wenn ein Link zu einem Bild gesendet wird, läd und sendet der Bot das Bild.",
usage = {"Link zum Bild"},
patterns = {"(https?://[%w-_%.%?%.:/%+=&]+%.png)$","(https?://[%w-_%.%?%.:/%+=&]+%.jpg)$","(https?://[%w-_%.%?%.:/%+=&]+%.jpeg)$",},
patterns = {"^(https?://[%w-_%.%?%.:/%+=&]+%.png)$","^(https?://[%w-_%.%?%.:/%+=&]+%.jpg)$","^(https?://[%w-_%.%?%.:/%+=&]+%.jpeg)$",},
run = run
}

View File

@ -15,6 +15,7 @@ function getTitle(page)
s = string.gsub(s, "'", "'")
s = string.gsub(s, "–", "")
s = string.gsub(s, "»", "»")
s = string.gsub(s, "–", "")
s = string.gsub(s, "“", "")
s = string.gsub(s, "”", "")
s = string.gsub(s, "ä", "ä")