Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a base branch
Nothing to show
...
Choose a head branch
Nothing to show
  • 6 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/servisi.coffee
View
@@ -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

No commit comments for this range