From a4758146d819dcbb8549df451323463ac266d060 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 1 Jun 2021 12:16:34 +0200 Subject: [PATCH] Factoids: Fix NameErrors in HTTP callback. --- plugins/Factoids/plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/Factoids/plugin.py b/plugins/Factoids/plugin.py index 141c427b6..d48960b79 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -129,7 +129,7 @@ class FactoidsCallback(httpserver.SupyHTTPServerCallback): self.write(httpserver.get_template('factoids/index.html')) elif len(parts) == 2: channel = utils.web.urlunquote(parts[0]) - if not irc.isChannel(channel): + if not ircutils.isChannel(channel): self.send_response(404) self.send_header('Content-type', 'text/html; charset=utf-8') self.end_headers() @@ -138,8 +138,7 @@ class FactoidsCallback(httpserver.SupyHTTPServerCallback): {'title': 'Factoids - not a channel', 'error': 'This is not a channel'}) return - if not self._plugin.registryValue('web.channel', - channel, irc.network): + if not self._plugin.registryValue('web.channel', channel): self.send_response(403) self.send_header('Content-type', 'text/html; charset=utf-8') self.end_headers()