From b9dbaa32449133374e9d6dad9c06a6297f9268f7 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Mon, 8 Aug 2016 21:27:56 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix=20f=C3=BCr=20Images=20&=20Media?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/images.lua | 2 +- otouto/plugins/media.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/otouto/plugins/images.lua b/otouto/plugins/images.lua index 70a83b8..a8ac784 100644 --- a/otouto/plugins/images.lua +++ b/otouto/plugins/images.lua @@ -5,7 +5,7 @@ images.triggers = { "(https?://[%w-_%%%.%?%.:,/%+=~&%[%]]+%.[Jj][Pp][Ee]?[Gg])$" } -function images:action(msg) +function images:action(msg, config, matches) local url = matches[1] local file, last_modified, nocache = get_cached_file(url, nil, msg.chat.id, 'upload_photo', self) local result = utilities.send_photo(self, msg.chat.id, file, nil, msg.message_id) diff --git a/otouto/plugins/media.lua b/otouto/plugins/media.lua index 0351a55..5c41675 100644 --- a/otouto/plugins/media.lua +++ b/otouto/plugins/media.lua @@ -22,7 +22,7 @@ media.triggers = { "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(webp))$" } -function media:action(msg) +function media:action(msg, config, matches) local url = matches[1] local ext = matches[2] local mime_type = mimetype.get_content_type_no_sub(ext)