Skip to content

Commit

Permalink
Merge pull request #933 from firerogue/master
Browse files Browse the repository at this point in the history
[isup] fix bad indexes preventing bot from recognizing http protocols
  • Loading branch information
embolalia committed Nov 14, 2015
2 parents 69f3a8e + c84cafe commit 268236d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel/modules/isup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def isup(bot, trigger):
if not site:
return bot.reply("What site do you want to check?")

if site[:6] != 'http://' and site[:7] != 'https://':
if site[:7] != 'http://' and site[:8] != 'https://':
if '://' in site:
protocol = site.split('://')[0] + '://'
return bot.reply("Try it again without the %s" % protocol)
Expand Down

0 comments on commit 268236d

Please sign in to comment.