Add XMPPRosterItem class.

This commit is contained in:
Jonathan Schleifer 2011-03-28 01:47:48 +02:00
parent 8ea345c02c
commit 56ddb5c8de
4 changed files with 36 additions and 12 deletions

View file

@ -39,9 +39,15 @@
- initWithString: (OFString*)str
{
size_t nodesep, resourcesep;
self = [super init];
size_t nodesep, resourcesep;
if (str == nil) {
[self release];
return nil;
}
nodesep = [str indexOfFirstOccurrenceOfString: @"@"];
resourcesep = [str indexOfFirstOccurrenceOfString: @"/"];