mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Why not make this public?
This commit is contained in:
parent
30abebecbe
commit
d6faaefa30
@ -724,6 +724,10 @@ class CanonicalNameSet(utils.NormalizingSet):
|
||||
def normalize(self, s):
|
||||
return canonicalName(s)
|
||||
|
||||
class CanonicalNameDict(utils.InsensitivePreservingDict):
|
||||
def key(self, s):
|
||||
return canonicalName(s)
|
||||
|
||||
class Disabled(registry.SpaceSeparatedListOf):
|
||||
Value = CanonicalString
|
||||
List = CanonicalNameSet
|
||||
@ -734,12 +738,8 @@ conf.registerGlobalValue(conf.supybot.commands, 'disabled',
|
||||
to exist."""))
|
||||
|
||||
class DisabledCommands(object):
|
||||
class CanonicalNameDict(utils.InsensitivePreservingDict):
|
||||
def key(self, s):
|
||||
return canonicalName(s)
|
||||
|
||||
def __init__(self):
|
||||
self.d = self.CanonicalNameDict()
|
||||
self.d = CanonicalNameDict()
|
||||
for name in conf.supybot.commands.disabled():
|
||||
if '.' in name:
|
||||
(plugin, command) = name.split('.', 1)
|
||||
|
Loading…
Reference in New Issue
Block a user