mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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):
|
def normalize(self, s):
|
||||||
return canonicalName(s)
|
return canonicalName(s)
|
||||||
|
|
||||||
|
class CanonicalNameDict(utils.InsensitivePreservingDict):
|
||||||
|
def key(self, s):
|
||||||
|
return canonicalName(s)
|
||||||
|
|
||||||
class Disabled(registry.SpaceSeparatedListOf):
|
class Disabled(registry.SpaceSeparatedListOf):
|
||||||
Value = CanonicalString
|
Value = CanonicalString
|
||||||
List = CanonicalNameSet
|
List = CanonicalNameSet
|
||||||
@ -734,12 +738,8 @@ conf.registerGlobalValue(conf.supybot.commands, 'disabled',
|
|||||||
to exist."""))
|
to exist."""))
|
||||||
|
|
||||||
class DisabledCommands(object):
|
class DisabledCommands(object):
|
||||||
class CanonicalNameDict(utils.InsensitivePreservingDict):
|
|
||||||
def key(self, s):
|
|
||||||
return canonicalName(s)
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.d = self.CanonicalNameDict()
|
self.d = CanonicalNameDict()
|
||||||
for name in conf.supybot.commands.disabled():
|
for name in conf.supybot.commands.disabled():
|
||||||
if '.' in name:
|
if '.' in name:
|
||||||
(plugin, command) = name.split('.', 1)
|
(plugin, command) = name.split('.', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user