From c84cafee3ec5ae192a397c0d5b3a01fcdd4405a0 Mon Sep 17 00:00:00 2001 From: FireRogue Date: Mon, 9 Nov 2015 15:28:33 +0200 Subject: [PATCH] [isup] fix bad indexes preventing bot from recognizing http protocols `'http://'` is 7 characters long, so `site[:6]` can't ever match it. ditto for `'https://'` and `site[:7]` --- sopel/modules/isup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel/modules/isup.py b/sopel/modules/isup.py index e7ca86939d..c167758b37 100644 --- a/sopel/modules/isup.py +++ b/sopel/modules/isup.py @@ -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)