Skip to content

Commit

Permalink
This fixes #50 - .stran still uses isup.me (which is horrible for pro…
Browse files Browse the repository at this point in the history
…tocols) but without protocols
  • Loading branch information
CrazyLemon committed Nov 18, 2016
1 parent 2bab960 commit ce719b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/servisi.coffee
Expand Up @@ -87,7 +87,8 @@ module.exports = (bot) ->
bot.regexp /^\.stran (.*)/i,
".stran <domena> -- Ali stran dela?",
(match, irc) ->
domena = match[1].trim()
httpmatch = /^(http|https):\/\//
domena = match[1].trim().replace(httpmatch,'')
url = "http://isup.me/#{domena}"
bot.fetch url, (error, response, body)->
if !error and response.statusCode is 200
Expand Down

0 comments on commit ce719b9

Please sign in to comment.