Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
fix isup to handle http://domain.com case
Browse files Browse the repository at this point in the history
  • Loading branch information
interskh committed Sep 4, 2014
1 parent a0ec744 commit d6c420f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/isup.coffee
Expand Up @@ -14,8 +14,8 @@
# jmhobbs

module.exports = (robot) ->
robot.respond /is (.*?) (up|down)(\?)?/i, (msg) ->
isUp msg, msg.match[1], (domain) ->
robot.respond /is (http\:\/\/)?(.*?) (up|down)(\?)?/i, (msg) ->
isUp msg, msg.match[2], (domain) ->
msg.send domain

isUp = (msg, domain, cb) ->
Expand Down

0 comments on commit d6c420f

Please sign in to comment.