ObjIRC  Diff

Differences From Artifact [3d00fb209b]:

To Artifact [61a450e638]:


37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@synthesize username = _username, nickname = _nickname, hostname = _hostname;

+ (instancetype)IRCUserWithString: (OFString *)string
{
	return [[[self alloc] initWithString: string] autorelease];
}

- initWithString: (OFString *)string
{
	char *tmp2 = NULL;

	self = [super init];

	@try {
		char *tmp;







|







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@synthesize username = _username, nickname = _nickname, hostname = _hostname;

+ (instancetype)IRCUserWithString: (OFString *)string
{
	return [[[self alloc] initWithString: string] autorelease];
}

- (instancetype)initWithString: (OFString *)string
{
	char *tmp2 = NULL;

	self = [super init];

	@try {
		char *tmp;
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
	[_nickname release];
	[_username release];
	[_hostname release];

	[super dealloc];
}

- copy
{
	return [self retain];
}

- (OFString *)description
{
	return [OFString stringWithFormat: @"%@!%@@%@",
					   _nickname, _username, _hostname];
}
@end







|










84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
	[_nickname release];
	[_username release];
	[_hostname release];

	[super dealloc];
}

- (id)copy
{
	return [self retain];
}

- (OFString *)description
{
	return [OFString stringWithFormat: @"%@!%@@%@",
					   _nickname, _username, _hostname];
}
@end