color is required for a valid buddy

This commit is contained in:
Dan Williams 2007-03-03 03:12:52 -05:00
parent 6428fdc9a4
commit 7da177a054

View File

@ -158,9 +158,7 @@ class Buddy(DBusGObject):
props['nick'] = self.props.nick
props['owner'] = self.props.owner
props['key'] = self.props.key
color = self.props.color
if color:
props['color'] = color
props['color'] = self.props.color
return props
# methods