mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Allow channel keys in registry.
This commit is contained in:
parent
f186dd01fa
commit
85fc5f25be
@ -83,7 +83,11 @@ class ValidNick(registry.String):
|
||||
|
||||
class ValidChannel(registry.String):
|
||||
def setValue(self, v):
|
||||
if not ircutils.isChannel(v):
|
||||
if ',' in v:
|
||||
(channel, _) = v.split(',', 1)
|
||||
else:
|
||||
channel = v
|
||||
if not ircutils.isChannel(channel):
|
||||
raise registry.InvalidRegistryValue, \
|
||||
'Value must be a valid IRC channel name.'
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user