Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. [xmppPrivacy retrieveListWithName:@"Block_List"];
  2. [xmppPrivacy setActiveListName:@"Block_List"];
  3. NSXMLElement *privacyElement = [XMPPPrivacy privacyItemWithType:@"jid" value:xmpp_jid action:@"deny" order:1];
  4. [XMPPPrivacy blockIQs:privacyElement];
  5. [XMPPPrivacy blockMessages:privacyElement];
  6. [XMPPPrivacy blockPresenceIn:privacyElement];
  7. [XMPPPrivacy blockPresenceOut:privacyElement];
  8.  
  9. NSLog(@"-------> PRIVACY ELEMENT: %@", privacyElement);
  10.  
  11. [arrayPrivacy addObject:privacyElement];
  12.  
  13.  
  14. [xmppPrivacy setListWithName:@"Block_List" items:arrayPrivacy];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement