From affaf9044c799e471b99cf1b502f82824e27d768 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Mon, 15 Aug 2016 14:25:20 +0200 Subject: [PATCH] Kollision mit mimetype behoben --- otouto/plugins/media.lua | 2 +- otouto/utilities.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/otouto/plugins/media.lua b/otouto/plugins/media.lua index 01284d9..20cece6 100644 --- a/otouto/plugins/media.lua +++ b/otouto/plugins/media.lua @@ -23,7 +23,7 @@ media.triggers = { function media:action(msg, config, matches) local url = matches[1] local ext = matches[2] - local mime_type = mimetype.get_content_type_no_sub(ext) + local mime_type = mime.get_content_type_no_sub(ext) local receiver = msg.chat.id if mime_type == 'audio' then diff --git a/otouto/utilities.lua b/otouto/utilities.lua index abab0a4..0de7f07 100644 --- a/otouto/utilities.lua +++ b/otouto/utilities.lua @@ -12,7 +12,7 @@ json = require("dkjson") pcall(json.use_lpeg) serpent = require("serpent") redis = (loadfile "./otouto/redis.lua")() -mimetype = (loadfile "./otouto/mimetype.lua")() +mime = (loadfile "./otouto/mimetype.lua")() OAuth = require "OAuth" helpers = require "OAuth.helpers"