From 1b152fc172f3a0cff93395b0b9b6718f56946f57 Mon Sep 17 00:00:00 2001 From: Cool Fire Date: Sat, 10 Nov 2018 15:31:49 +0100 Subject: [PATCH] Fix auto-voice --- plugins/shells.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/shells.rb b/plugins/shells.rb index b1ac4d0..750d616 100644 --- a/plugins/shells.rb +++ b/plugins/shells.rb @@ -47,14 +47,13 @@ class Shells @irc.notice( nick, "Hello #{nick}, welcome to #shells for Insomnia 24/7 shell support."); @irc.notice( nick, "If no one is here to help you, please stick around or email your questions to coolfire\@insomnia247.nl."); - voice = Net::HTTP.get( 'www.insomnia247.nl', '/users.php?user=' + nick ) + voice = Net::HTTP.get( URI.parse( "https://www.insomnia247.nl/users.php?user=#{nick}" ) ) if( voice == "YES" ) @irc.mode( channel, "+v" , nick, true ) end end end - # Show links def link( _nick, _user, _host, from, _msg, arguments, con ) case arguments -- GitLab