From e96633c1e3e9bfa50fd5b692cb364cf6c797f8cf Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 28 Apr 2021 20:04:45 +0200 Subject: [PATCH] RSS: Forbid dots in feed names. They confuse the registry --- plugins/RSS/plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index 260ae5325..311a04c4e 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -70,6 +70,9 @@ def get_feedName(irc, msg, args, state): if not registry.isValidRegistryName(args[0]): state.errorInvalid('feed name', args[0], 'Feed names must not include spaces.') + if "." in args[0]: + state.errorInvalid('feed name', args[0], + 'Feed names must not include dots.') state.args.append(callbacks.canonicalName(args.pop(0))) addConverter('feedName', get_feedName)