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 ...@@ -58,30 +58,30 @@ class Shells
def link( _nick, _user, _host, from, _msg, arguments, con ) def link( _nick, _user, _host, from, _msg, arguments, con )
case arguments case arguments
when /^main/i when /^main/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells" ] info = [ "https://wiki.insomnia247.nl/wiki/Shells" ]
when /^faq/i when /^faq/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_FAQ" ] info = [ "https://wiki.insomnia247.nl/wiki/Shells_FAQ" ]
when /^rule/i when /^rule/i
info = [ "http://wiki.insomnia247.nl/wiki/Shells_rules" ] info = [ "https://wiki.insomnia247.nl/wiki/Shells_rules" ]
when /^shell/i 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." ] "The short version is: You need an invite." ]
when /^invite/i 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." ] "The short version is: You need a good reason." ]
when /^good/i 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 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 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 when /^suwww/i
info = [ "You can use the 'suwww' command to change to your Apache user.", 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 when /^heartbeat/i
info = [ "http://heartbeat.insomnia247.nl" ] info = [ "http://heartbeat.insomnia247.nl" ]
when /^git/i when /^git/i
info = [ "http://git.insomnia247.nl", info = [ "https://git.insomnia247.nl",
"No shell account is required to sign up here." ] "No shell account is required to sign up here." ]
when /^learnix/i when /^learnix/i
info = [ "Learnix shells: http://dams.insomnia247.nl/Public/Learnix.html" ] info = [ "Learnix shells: http://dams.insomnia247.nl/Public/Learnix.html" ]
...@@ -90,12 +90,12 @@ class Shells ...@@ -90,12 +90,12 @@ class Shells
end end
printhelp( from, con, info ) printhelp( from, con, info )
end end
# Alias for link # Alias for link
def info( nick, user, host, from, msg, arguments, con ) def info( nick, user, host, from, msg, arguments, con )
link( nick, user, host, from, msg, arguments, con ) link( nick, user, host, from, msg, arguments, con )
end end
# Show information about open ports # Show information about open ports
def port( nick, user, host, from, msg, arguments, con ) def port( nick, user, host, from, msg, arguments, con )
ports( nick, user, host, from, msg, arguments, con ) ports( nick, user, host, from, msg, arguments, con )
...@@ -231,7 +231,7 @@ class Shells ...@@ -231,7 +231,7 @@ class Shells
# Function to grab statistics from shell hosts. # Function to grab statistics from shell hosts.
def getstat( chan, stat ) def getstat( chan, stat )
begin 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 rescue Exception => e
iline = "[Host appears to be down! (#{e.message})]" iline = "[Host appears to be down! (#{e.message})]"
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