Index: src/XMPPPresence.m ================================================================== --- src/XMPPPresence.m +++ src/XMPPPresence.m @@ -74,10 +74,16 @@ { return [super initWithName: @"presence" type: type_ ID: ID_]; } + +- (OFString*)type +{ + if (type == nil) + return @"available"; +} - (void)addShow: (OFString*)show { [self addChild: [OFXMLElement elementWithName: @"show" namespace: XMPP_NS_CLIENT