From bdf18bfc096fbddaa32b546c77c5223b201f2f2b Mon Sep 17 00:00:00 2001 From: Yago Date: Mon, 2 Mar 2015 20:12:41 +0100 Subject: [PATCH 1/3] LICENSE name and year --- LICENSE | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 22fbe5d..27b4e5e 100644 --- a/LICENSE +++ b/LICENSE @@ -291,7 +291,7 @@ convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. {description} - Copyright (C) {year} {fullname} + Copyright (C) 2015 Yago PĂ©rez This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -336,4 +336,4 @@ This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. \ No newline at end of file +Public License instead of this License. From adf8120c70846ca047ad1e3dd5dc70e4b0f771b3 Mon Sep 17 00:00:00 2001 From: Yago Date: Wed, 4 Mar 2015 23:14:39 +0100 Subject: [PATCH 2/3] Fix DOT extension. --- plugins/media.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/media.lua b/plugins/media.lua index 64c8175..6b86618 100644 --- a/plugins/media.lua +++ b/plugins/media.lua @@ -8,16 +8,16 @@ return { description = "When user sends media URL (ends with gif, mp4, pdf, etc.) download and send it to origin.", usage = "", patterns = { - "(https?://[%w-_%.%?%.:/%+=&]+.gif)$", - "(https?://[%w-_%.%?%.:/%+=&]+.mp4)$", - "(https?://[%w-_%.%?%.:/%+=&]+.pdf)$", - "(https?://[%w-_%.%?%.:/%+=&]+.ogg)$", - "(https?://[%w-_%.%?%.:/%+=&]+.zip)$", - "(https?://[%w-_%.%?%.:/%+=&]+.mp3)$", - "(https?://[%w-_%.%?%.:/%+=&]+.rar)$", - "(https?://[%w-_%.%?%.:/%+=&]+.wmv)$", - "(https?://[%w-_%.%?%.:/%+=&]+.doc)$", - "(https?://[%w-_%.%?%.:/%+=&]+.avi)$" + "(https?://[%w-_%.%?%.:/%+=&]+%.gif)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.mp4)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.pdf)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.ogg)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.zip)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.mp3)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.rar)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.wmv)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.doc)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.avi)$" }, run = run -} \ No newline at end of file +} From 230fbc0177cabf02bdfef497c7fc02f89c535879 Mon Sep 17 00:00:00 2001 From: Yago Date: Wed, 4 Mar 2015 23:22:00 +0100 Subject: [PATCH 3/3] Fix DOT extension. --- plugins/images.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/images.lua b/plugins/images.lua index bf342f6..1b89ee2 100644 --- a/plugins/images.lua +++ b/plugins/images.lua @@ -10,11 +10,11 @@ return { description = "When user sends image URL (ends with png, jpg, jpeg) download and send it to origin.", usage = "", patterns = { - "(https?://[%w-_%.%?%.:/%+=&]+.png)$", - "(https?://[%w-_%.%?%.:/%+=&]+.jpg)$", - "(https?://[%w-_%.%?%.:/%+=&]+.jpeg)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.png)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.jpg)$", + "(https?://[%w-_%.%?%.:/%+=&]+%.jpeg)$", }, run = run } -end \ No newline at end of file +end