Sort remaining nondeterministc sets of values

Closes GH-1516
This commit is contained in:
Valentin Lorentz 2022-10-20 18:35:58 +02:00
parent dc94f8dc68
commit d0a484c11c
5 changed files with 6 additions and 2 deletions

View File

@ -50,6 +50,7 @@ conf.registerChannelValue(Protector, 'enable',
class ImmuneNicks(conf.ValidNicks):
List = ircutils.IrcSet
sorted = True
conf.registerChannelValue(Protector, 'immune',
ImmuneNicks([], _("""Determines what nicks the bot will consider to

View File

@ -43,7 +43,7 @@ def configure(advanced):
conf.registerPlugin('RSS', True)
class FeedNames(registry.SpaceSeparatedListOfStrings):
class FeedNames(registry.SpaceSeparatedSetOfStrings):
List = callbacks.CanonicalNameSet
class FeedItemSortOrder(registry.OnlySomeStrings):

View File

@ -50,10 +50,12 @@ def configure(advanced):
class Ignores(registry.SpaceSeparatedListOf):
List = ircutils.IrcSet
Value = conf.ValidHostmask
sorted = True
class Networks(registry.SpaceSeparatedListOf):
List = ircutils.IrcSet
Value = registry.String
sorted = True
Relay = conf.registerPlugin('Relay')
conf.registerChannelValue(Relay, 'color',

View File

@ -64,6 +64,7 @@ class ValidNickOrEmptyString(registry.String):
class ValidNickSet(conf.ValidNicks):
List = ircutils.IrcSet
sorted = True
Services = conf.registerPlugin('Services')
conf.registerNetworkValue(Services, 'nicks',

View File

@ -1314,7 +1314,7 @@ def checkCapabilities(hostmask, capabilities, requireAll=False):
# supybot.capabilities
###
class SpaceSeparatedListOfCapabilities(registry.SpaceSeparatedListOfStrings):
class SpaceSeparatedListOfCapabilities(registry.SpaceSeparatedSetOfStrings):
__slots__ = ()
List = CapabilitySet