Add a class for handling JIDs.
This commit is contained in:
parent
b64ae746e6
commit
6dc9e5e217
5 changed files with 200 additions and 4 deletions
|
@ -13,6 +13,7 @@
|
|||
@synthesize password;
|
||||
@synthesize server;
|
||||
@synthesize resource;
|
||||
@synthesize JID;
|
||||
@synthesize port;
|
||||
@synthesize useTLS;
|
||||
@synthesize delegate;
|
||||
|
@ -218,8 +219,9 @@
|
|||
if ([bindElem.name isEqual: @"bind"] &&
|
||||
[bindElem.namespace isEqual: NS_BIND]) {
|
||||
OFXMLElement *jidElem = bindElem.children.firstObject;
|
||||
of_log(@"Bound to JID: %@", [jidElem.children.firstObject
|
||||
stringValue]);
|
||||
JID = [[XMPPJID alloc] initWithString:
|
||||
[jidElem.children.firstObject stringValue]];
|
||||
of_log(@"Bound to JID: %@", [JID fullJID]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue