Commit 8fe972c7 authored by Cool Fire's avatar Cool Fire
Browse files

Switch to api call for checking if users exist

parent f1df61ae
Pipeline #1910 passed with stages
in 6 minutes and 49 seconds
......@@ -2,6 +2,7 @@
# Plugin with misc functions for #shells
class Shells
require 'json'
# This method is called when the plugin is first loaded
def initialize( status, config, output, irc, timer )
......@@ -47,8 +48,8 @@ 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\");
voice = Net::HTTP.get( URI.parse( "{nick}" ) )
if( voice == "YES" )
voice = JSON.parse( Net::HTTP.get( URI.parse( "{nick}" ) ) )
if( voice['result'] )
@irc.mode( channel, "+v" , nick, true )
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