Clean up the code.
This commit is contained in:
parent
fa59d3ce32
commit
4690b47ae9
11 changed files with 186 additions and 184 deletions
12
src/XMPPIQ.m
12
src/XMPPIQ.m
|
@ -11,14 +11,14 @@
|
|||
- initWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_
|
||||
{
|
||||
if (!([type_ isEqual: @"get"] ||
|
||||
[type_ isEqual: @"set"] ||
|
||||
[type_ isEqual: @"result"] ||
|
||||
[type_ isEqual: @"error"]))
|
||||
if (![type_ isEqual: @"get"] &&
|
||||
![type_ isEqual: @"set"] &&
|
||||
![type_ isEqual: @"result"] &&
|
||||
![type_ isEqual: @"error"])
|
||||
of_log(@"Invalid IQ type!");
|
||||
|
||||
return [super initWithName: @"iq"
|
||||
type: type_
|
||||
ID: ID_];
|
||||
type: type_
|
||||
ID: ID_];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue