mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Minor little tweak.
This commit is contained in:
parent
cc68310aa8
commit
303bba29d4
@ -161,12 +161,12 @@ class Config(callbacks.Privmsg):
|
|||||||
name = privmsgs.getArgs(args)
|
name = privmsgs.getArgs(args)
|
||||||
name = self._canonicalizeName(name)
|
name = self._canonicalizeName(name)
|
||||||
wrapper = getWrapper(name)
|
wrapper = getWrapper(name)
|
||||||
if wrapper.__class__ is registry.Group:
|
if hasattr(wrapper, 'value'):
|
||||||
irc.error(msg, 'That\'s not a value, it\'s a group. Use the list '
|
irc.reply(str(wrapper))
|
||||||
'command in this plugin to see what values are '
|
else:
|
||||||
'available in this group.')
|
irc.error('That registry variable has no value. Use the list '
|
||||||
return
|
'command in this plugin to see what values are '
|
||||||
irc.reply(str(wrapper))
|
'available in this group.')
|
||||||
|
|
||||||
def _set(self, irc, msg, args):
|
def _set(self, irc, msg, args):
|
||||||
"""<name> <value>
|
"""<name> <value>
|
||||||
|
Loading…
Reference in New Issue
Block a user