ObjIRC  Diff

Differences From Artifact [16d8144689]:

To Artifact [76bba49af6]:


18
19
20
21
22
23
24


25
26
27
28
29
30
31
32
33
34
35
36
18
19
20
21
22
23
24
25
26
27
28
29


30
31
32
33
34
35
36







+
+



-
-







 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#import <ObjFW/OFString.h>

#import <ObjFW/macros.h>

#import "IRCChannel.h"

@implementation IRCChannel
@synthesize name, users;

+ channelWithName: (OFString*)name
{
	return [[[self alloc] initWithName: name] autorelease];
}

- initWithName: (OFString*)name_
{
50
51
52
53
54
55
56










57
58
59
60

61
62
63
64
65
66
67
68
69
70
71
72
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

70
71
72
73
74
75
76
77
78
79
80
81
82







+
+
+
+
+
+
+
+
+
+



-
+












- (void)dealloc
{
	[name release];
	[users release];

	[super dealloc];
}

- (OFString*)name
{
	OF_GETTER(name, YES)
}

- (OFSet*)users
{
	return [[users copy] autorelease];
}

- (OFString*)description
{
	return name;
	return [[name copy] autorelease];
}

- (void)IRC_addUser: (OFString*)user
{
	[users addObject: user];
}

- (void)IRC_removeUser: (OFString*)user
{
	[users removeObject: user];
}
@end