From 26699e832bd4d4571e052ea7db560ab74a321cb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hendrik=20J=C3=A4ger?= Date: Thu, 21 Jul 2022 22:55:25 +0200 Subject: [PATCH] fix: URI.escape is not needed anymore --- data/rbot/plugins/url.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index 3faeeab9..e974c96b 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -254,8 +254,7 @@ class UrlPlugin < Plugin def message(m) return if m.address? - escaped = URI.escape(m.message, OUR_UNSAFE) - urls = URI.extract(escaped, ['http', 'https']) + urls = URI.extract(m.message, ['http', 'https']) return if urls.empty? Thread.new { handle_urls(m, :urls => urls) } end -- 2.39.2