- Cash: Falsche Hilfe

- gMaps: Überschneidung des Patterns mit location_manager behoben
- Plugins: matches hinzugefügt
- RSS: Escape Text
This commit is contained in:
Andreas Bielawski 2016-06-21 18:34:33 +02:00
parent fc7e0d46f9
commit ddbaca396f
5 changed files with 5 additions and 5 deletions

View File

@ -127,7 +127,7 @@ function bitly_create:action(msg, config, matches)
print('Not signed in, will use global bitly access_token') print('Not signed in, will use global bitly access_token')
bitly_access_token = cred_data.bitly_access_token bitly_access_token = cred_data.bitly_access_token
end end
if matches[2] == nil then if matches[2] == nil then
long_url = url_encode(matches[1]) long_url = url_encode(matches[1])
domain = 'bit.ly' domain = 'bit.ly'

View File

@ -3,7 +3,7 @@ local currency = {}
local HTTPS = require('ssl.https') local HTTPS = require('ssl.https')
local utilities = require('otouto.utilities') local utilities = require('otouto.utilities')
currency.command = 'cash [Menge] <von> in <zu>' currency.command = 'cash [Menge] <von> <zu>'
function currency:init(config) function currency:init(config)
currency.triggers = { currency.triggers = {

View File

@ -6,7 +6,7 @@ local utilities = require('otouto.utilities')
gMaps.command = 'loc <Ort>' gMaps.command = 'loc <Ort>'
function gMaps:init(config) function gMaps:init(config)
gMaps.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('location', true):t('loc', true).table gMaps.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('loc', true).table
gMaps.doc = [[* gMaps.doc = [[*
]]..config.cmd_pat..[[loc* _<Ort>_: Sendet Ort via Google Maps]] ]]..config.cmd_pat..[[loc* _<Ort>_: Sendet Ort via Google Maps]]
end end

View File

@ -163,7 +163,7 @@ function plugin_manager:reenable_plugin_on_chat(msg, plugin)
end end
end end
function plugin_manager:action(msg, config) function plugin_manager:action(msg, config, matches)
if msg.from.id ~= config.admin then if msg.from.id ~= config.admin then
utilities.send_reply(self, msg, config.errors.sudo) utilities.send_reply(self, msg, config.errors.sudo)
return return

View File

@ -285,7 +285,7 @@ function rss:cron(self_plz)
else else
content = '' content = ''
end end
text = text..'\n*'..title..'*\n'..content..' [Weiterlesen]('..link..')\n' text = text..'\n#RSS: *'..title..'*\n'..utilities.md_escape(content)..' [Weiterlesen]('..link..')\n'
end end
if text ~= '' then if text ~= '' then
local newlast = newentr[1].id local newlast = newentr[1].id