ObjIRC  Diff

Differences From Artifact [b7bd4aa235]:

To Artifact [3d00fb209b]:


32
33
34
35
36
37
38
39

40
41
42
43
44

45
46
47
48
49
50
51
32
33
34
35
36
37
38

39
40
41
42
43

44
45
46
47
48
49
50
51







-
+




-
+







#import <ObjFW/macros.h>

#import "IRCUser.h"

@implementation IRCUser
@synthesize username = _username, nickname = _nickname, hostname = _hostname;

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

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

	self = [super init];

	@try {
		char *tmp;
89
90
91
92
93
94
95
96

97
98
99
100
101
89
90
91
92
93
94
95

96
97
98
99
100
101







-
+





}

- copy
{
	return [self retain];
}

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