ObjXMPP  Diff

Differences From Artifact [3d81ab950c]:

To Artifact [9adee8b6bc]:


30
31
32
33
34
35
36



37

38
39

40
41


42

43
44
45
46
47
	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







>
>
>
|
>
|
|
>
|
|
>
>
|
>
|
<
<


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51


52
53
	return [[[self alloc] initWithType: type_
					ID: ID_] autorelease];
}

- initWithType: (OFString*)type_
	    ID: (OFString*)ID_
{
	self = [super initWithName: @"iq"
			      type: type_
				ID: ID_];

	@try {
		if (![type_ isEqual: @"get"] && ![type_ isEqual: @"set"] &&
		    ![type_ isEqual: @"result"] && ![type_ isEqual: @"error"])
			@throw [OFInvalidArgumentException newWithClass: isa
							       selector: _cmd];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;


}
@end