diff options
author | Hendrik Jäger <gitcommit@henk.geekmail.org> | 2022-07-21 22:55:25 +0200 |
---|---|---|
committer | Hendrik Jäger <gitcommit@henk.geekmail.org> | 2023-09-24 22:02:41 +0200 |
commit | 26699e832bd4d4571e052ea7db560ab74a321cb8 (patch) | |
tree | c7fe1329993b8794605ece4a61e762e51bad140c | |
parent | 3ace72d5642284665fce2c33c99dfeb1b931b2c6 (diff) |
fix: URI.escape is not needed anymore
-rw-r--r-- | data/rbot/plugins/url.rb | 3 |
1 files changed, 1 insertions, 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 |