From b50b000fd3b6bd6c8e75830b350582474d047a3f Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sun, 6 Dec 2015 17:20:56 +0100 Subject: [PATCH] =?UTF-8?q?[]=20im=20Pattern=20f=C3=BCr=20media.lua=20und?= =?UTF-8?q?=20imges.lua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/images.lua | 6 +++--- plugins/media.lua | 34 +++++++++++++++++----------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/plugins/images.lua b/plugins/images.lua index e2d7aee..2dc5a88 100644 --- a/plugins/images.lua +++ b/plugins/images.lua @@ -10,9 +10,9 @@ 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 } diff --git a/plugins/media.lua b/plugins/media.lua index 8fa4a36..f548fbd 100644 --- a/plugins/media.lua +++ b/plugins/media.lua @@ -48,23 +48,23 @@ return { description = "Wenn ein User eine Medien-Datei sendet (gif, mp4, pdf, etc.), wird es gedownloadet und gesendet.", usage = {""}, patterns = { - "^(https?://[%w-_%.%?%.:/%+=&]+%.(gif))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(mp4))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(pdf))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(ogg))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(zip))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(tar.gz))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(7z))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(mp3))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(rar))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(wmv))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(doc))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(avi))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(wav))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(apk))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(webm))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(ogv))$", - "^(https?://[%w-_%.%?%.:/%+=&]+%.(webp))$" + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(gif))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(mp4))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(pdf))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(ogg))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(zip))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(tar.gz))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(7z))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(mp3))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(rar))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(wmv))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(doc))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(avi))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(wav))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(apk))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(webm))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(ogv))$", + "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(webp))$" }, run = run }