Artifact 5cc3a4abb8b01c345b2daffef1ee64e14ad4a162ca2081f92ec42646b21add37:
- File src/XMPPIQ.m — part of check-in [e00e687561] at 2011-02-16 20:05:14 on branch trunk — Clean up the code. (user: js, size: 475) [annotate] [blame] [check-ins using]
#import "XMPPIQ.h" @implementation XMPPIQ + IQWithType: (OFString*)type_ ID: (OFString*)ID_ { return [[[self alloc] initWithType: type_ ID: ID_] autorelease]; } - initWithType: (OFString*)type_ ID: (OFString*)ID_ { 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_]; } @end