RSS: Forbid dots in feed names.

They confuse the registry
This commit is contained in:
Valentin Lorentz 2021-04-28 20:04:45 +02:00
parent 3d21c7cbcb
commit e96633c1e3
1 changed files with 3 additions and 0 deletions

View File

@ -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)