Use self for XMPPStanza's init

This commit is contained in:
Florian Zeitz 2011-02-12 17:58:43 +01:00
parent 188528419f
commit b64ae746e6

View file

@ -70,14 +70,13 @@
[name_ isEqual: @"presence"]))
of_log(@"Invalid stanza name!");
id ret;
ret = [super initWithName: name_];
self = [super initWithName: name_];
[self setDefaultNamespace: @"jabber:client"];
if (type_)
[ret setType: type_];
[self setType: type_];
if (ID_)
[ret setID: ID_];
return ret;
[self setID: ID_];
return self;
}
- initWithElement: (OFXMLElement*)elem