mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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):
|
||||
raise registry.InvalidRegistryValue, \
|
||||
'Value must be a valid nick or the empty string.'
|
||||
self.value = v
|
||||
registry.String.setValue(self, v)
|
||||
|
||||
conf.registerPlugin('Services')
|
||||
# Not really ChannelValues: but we can have values for each network. We
|
||||
|
@ -215,6 +215,10 @@ class Value(Group):
|
||||
own setValue."""
|
||||
self._lastModified = time.time()
|
||||
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):
|
||||
return repr(self())
|
||||
|
Loading…
Reference in New Issue
Block a user