mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Fixed bugz0r #893239.
This commit is contained in:
parent
de30db819a
commit
c60664f620
@ -65,7 +65,7 @@ class ValidNickOrEmptyString(registry.String):
|
|||||||
if v and not ircutils.isNick(v):
|
if v and not ircutils.isNick(v):
|
||||||
raise registry.InvalidRegistryValue, \
|
raise registry.InvalidRegistryValue, \
|
||||||
'Value must be a valid nick or the empty string.'
|
'Value must be a valid nick or the empty string.'
|
||||||
self.value = v
|
registry.String.setValue(self, v)
|
||||||
|
|
||||||
conf.registerPlugin('Services')
|
conf.registerPlugin('Services')
|
||||||
# Not really ChannelValues: but we can have values for each network. We
|
# Not really ChannelValues: but we can have values for each network. We
|
||||||
|
@ -215,6 +215,10 @@ class Value(Group):
|
|||||||
own setValue."""
|
own setValue."""
|
||||||
self._lastModified = time.time()
|
self._lastModified = time.time()
|
||||||
self.value = v
|
self.value = v
|
||||||
|
if self.supplyDefault:
|
||||||
|
for (name, v) in self.children.items():
|
||||||
|
if v.__class__ is self.X:
|
||||||
|
self.unregister(name)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return repr(self())
|
return repr(self())
|
||||||
|
Loading…
Reference in New Issue
Block a user