@@ -51,13 +51,13 @@ - (void)applicationDidFinishLaunching { OFArray *arguments = [OFApplication arguments]; XMPPPresence *pres = [XMPPPresence presence]; - [pres addShow: @"chat"]; - [pres addStatus: @"Bored"]; - [pres addPriority: 20]; + [pres setShow: @"chat"]; + [pres setStatus: @"Bored"]; + [pres setPriority: [OFNumber numberWithInt8: 20]]; [pres setTo: [XMPPJID JIDWithString: @"alice@example.com"]]; [pres setFrom: [XMPPJID JIDWithString: @"bob@example.org"]]; assert([[pres XMLString] isEqual: @"chat" @"Bored20" @@ -152,12 +152,12 @@ XMPPPresence *pres; of_log(@"Got roster: %@", [roster_ rosterItems]); pres = [XMPPPresence presence]; - [pres addPriority: 10]; - [pres addStatus: @"ObjXMPP test is working!"]; + [pres setPriority: [OFNumber numberWithInt8: 10]]; + [pres setStatus: @"ObjXMPP test is working!"]; [conn sendStanza: pres]; #ifdef OF_HAVE_BLOCKS XMPPIQ *iq = [XMPPIQ IQWithType: @"get"