ibSearch: Fix für mehrere Tags

This commit is contained in:
Akamaru 2016-10-18 20:38:25 +02:00
parent ceb13c9733
commit 4f572310db

View File

@ -49,7 +49,7 @@ end
function ibSearch:action(msg, config, matches) function ibSearch:action(msg, config, matches)
local tag = string.gsub(matches[2], " ", '_') local tag = string.gsub(matches[2], " ", '_')
local tag = string.gsub(tag, ":", '%%3A') local tag = string.gsub(tag, ":", '%%3A')
local tag = string.gsub(tag, "+", '%%2B') local tag = string.gsub(tag, "+", '%%20')
if matches[1] == 'ibsearch' then if matches[1] == 'ibsearch' then
url, id = ibSearch:get_ibSearch_sfw(tag) url, id = ibSearch:get_ibSearch_sfw(tag)
elseif matches[1] == 'ibnsfw' then elseif matches[1] == 'ibnsfw' then