Commit 0582de2d authored by Cool Fire's avatar Cool Fire

Update urls to use https

parent 084d0f48
Pipeline #1254 passed with stages
in 6 minutes and 55 seconds
......@@ -58,30 +58,30 @@ class Shells
def link( _nick, _user, _host, from, _msg, arguments, con )
case arguments
when /^main/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells" ]
info = [ "https://wiki.insomnia247.nl/wiki/Shells" ]
when /^faq/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_FAQ" ]
info = [ "https://wiki.insomnia247.nl/wiki/Shells_FAQ" ]
when /^rule/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_rules" ]
info = [ "https://wiki.insomnia247.nl/wiki/Shells_rules" ]
when /^shell/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_FAQ#How_do_I_request_a_shell.3F",
info = [ "https://wiki.insomnia247.nl/wiki/Shells_FAQ#How_do_I_request_a_shell.3F",
"The short version is: You need an invite." ]
when /^invite/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_FAQ#How_do_I_get_an_invite.3F",
info = [ "https://wiki.insomnia247.nl/wiki/Shells_FAQ#How_do_I_get_an_invite.3F",
"The short version is: You need a good reason." ]
when /^good/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_FAQ#What_is_a_good_reason_for_an_invite.3F" ]
info = [ "https://wiki.insomnia247.nl/wiki/Shells_FAQ#What_is_a_good_reason_for_an_invite.3F" ]
when /^bad/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_FAQ#What_are_bad_reasons_for_an_invite.3F" ]
info = [ "https://wiki.insomnia247.nl/wiki/Shells_FAQ#What_are_bad_reasons_for_an_invite.3F" ]
when /^learning/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_FAQ#Why_isn.27t_learning_a_valid_usage.3F" ]
info = [ "https://wiki.insomnia247.nl/wiki/Shells_FAQ#Why_isn.27t_learning_a_valid_usage.3F" ]
when /^suwww/i
info = [ "You can use the 'suwww' command to change to your Apache user.",
"More info here: http://wiki.insomnia247.nl/wiki/Shells_websites#suwww" ]
"More info here: https://wiki.insomnia247.nl/wiki/Shells_websites#suwww" ]
when /^heartbeat/i
info = [ "http://heartbeat.insomnia247.nl" ]
when /^git/i
info = [ "http://git.insomnia247.nl",
info = [ "https://git.insomnia247.nl",
"No shell account is required to sign up here." ]
when /^learnix/i
info = [ "Learnix shells: http://dams.insomnia247.nl/Public/Learnix.html" ]
......@@ -90,12 +90,12 @@ class Shells
end
printhelp( from, con, info )
end
# Alias for link
def info( nick, user, host, from, msg, arguments, con )
link( nick, user, host, from, msg, arguments, con )
end
# Show information about open ports
def port( nick, user, host, from, msg, arguments, con )
ports( nick, user, host, from, msg, arguments, con )
......@@ -231,7 +231,7 @@ class Shells
# Function to grab statistics from shell hosts.
def getstat( chan, stat )
begin
iline = Net::HTTP.get( 'www.insomnia247.nl', '/stats.php?get=' + stat )
iline = Net::HTTP.get( URI( "https://www.insomnia247.nl/stats.php?get=#{stat}" ) )
rescue Exception => e
iline = "[Host appears to be down! (#{e.message})]"
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