Commit 8ceffb5a authored by Cool Fire's avatar Cool Fire

Update nick checking feature in both places

parent 8fe972c7
Pipeline #1962 passed with stages
in 5 minutes and 33 seconds
......@@ -192,8 +192,8 @@ class Shells
if(parts[0] == "#{@config.nick} = #{@chan} ")
nicks = parts[1].split(' ')
nicks.each do |n|
voice = Net::HTTP.get( URI.parse( "https://www.insomnia247.nl/users.php?user=#{nick}" ) )
if( voice == "YES" )
voice = JSON.parse( Net::HTTP.get( URI.parse( "https://api.insomnia247.nl/v1/user/check/#{nick}" ) ) )
if( voice['result'] )
@irc.mode( @chan, "+v" , n, true )
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment