diff options
Diffstat (limited to 'Source/SPUserMO.m')
-rw-r--r-- | Source/SPUserMO.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/SPUserMO.m b/Source/SPUserMO.m index e02bb009..6e166700 100644 --- a/Source/SPUserMO.m +++ b/Source/SPUserMO.m @@ -46,7 +46,13 @@ static NSString *SPUserMOChildrenKey = @"children"; - (NSString *)displayName { - return ([self valueForKey:SPUserMOParentKey] == nil) ? self.user : self.host; + if ([self valueForKey:SPUserMOParentKey] == nil) { + return self.user; + } + if ([self.host length]) { + return self.host; + } + return @"%"; } - (void)setDisplayName:(NSString *)value |