Fixed bugz0r #893239.

This commit is contained in:
Jeremy Fincher 2004-02-09 16:32:00 +00:00
parent de30db819a
commit c60664f620
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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())