@@ -11,10 +11,11 @@ @implementation XMPPConnection @synthesize username; @synthesize password; @synthesize server; @synthesize resource; +@synthesize JID; @synthesize port; @synthesize useTLS; @synthesize delegate; - init @@ -216,12 +217,13 @@ { OFXMLElement *bindElem = iq.children.firstObject; 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]); } } - (void)_handleFeatures: (OFXMLElement*)elem {