Fixed some bugz0rs.

This commit is contained in:
Jeremy Fincher 2004-01-26 08:10:36 +00:00
parent 26355a6dbd
commit 847b53d68a
2 changed files with 4 additions and 5 deletions

View File

@ -96,10 +96,9 @@ def loadPluginClass(irc, module):
conf.registerGroup(conf.supybot, 'commands')
conf.registerGroup(conf.supybot.commands, 'defaultPlugins',
registry.GroupWithDefault(registry.String('', """
Determines what commands have default plugins set, and which
plugins are set to be the default for each of those
commands.""")))
registry.GroupWithDefault(registry.String('(Unused)', """Determines what
commands have default plugins set, and which plugins are set to be the
default for each of those commands.""")))
conf.registerGlobalValue(conf.supybot.commands.defaultPlugins,
'list', registry.String('Misc', ''))
conf.registerGlobalValue(conf.supybot.commands.defaultPlugins,

View File

@ -311,7 +311,7 @@ class Group(object):
items = self.values.items()
for (name, child) in self.children.items():
if hasattr(child, 'value'):
items.append((self.originals[name], child))
items.append((name, child))
utils.sortBy(lambda (k, _): (k.lower(), len(k), k), items)
for (name, value) in items:
if fullNames: