Permalink
...
Comparing changes
Open a pull request
- 6 commits
- 1 file changed
- 0 commit comments
- 2 contributors
Unified
Split
Showing
with
2 additions
and 1 deletion.
- +2 −1 scripts/servisi.coffee
View
3
scripts/servisi.coffee
| @@ -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 | ||