From cb4327e1318d584e557b85cd932937d357355d64 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 15 Jun 2015 01:08:43 -0400 Subject: [PATCH] Fix IRC watcher for HTTPS. --- earwigbot/irc/rc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/earwigbot/irc/rc.py b/earwigbot/irc/rc.py index 4998377..3e71ba9 100644 --- a/earwigbot/irc/rc.py +++ b/earwigbot/irc/rc.py @@ -27,7 +27,7 @@ __all__ = ["RC"] class RC(object): """Store data from an event received from our IRC watcher.""" re_color = re.compile("\x03([0-9]{1,2}(,[0-9]{1,2})?)?") - re_edit = re.compile("\A\[\[(.*?)\]\]\s(.*?)\s(http://.*?)\s\*\s(.*?)\s\*\s(.*?)\Z") + re_edit = re.compile("\A\[\[(.*?)\]\]\s(.*?)\s(https?://.*?)\s\*\s(.*?)\s\*\s(.*?)\Z") re_log = re.compile("\A\[\[(.*?)\]\]\s(.*?)\s\s\*\s(.*?)\s\*\s(.*?)\Z") pretty_edit = "\x02New {0}\x0F: \x0314[[\x0307{1}\x0314]]\x0306 * \x0303{2}\x0306 * \x0302{3}\x0306 * \x0310{4}" @@ -60,7 +60,7 @@ class RC(object): # We're probably missing the http:// part, because it's a log # entry, which lacks a URL: page, flags, user, comment = self.re_log.findall(msg)[0] - url = "http://{0}.org/wiki/{1}".format(self.chan[1:], page) + url = "https://{0}.org/wiki/{1}".format(self.chan[1:], page) self.is_edit = False # This is a log entry, not edit