@@ -26,25 +26,25 @@ #import "IRCConnection.h" #import "IRCUser.h" #import "IRCChannel.h" -@interface TestApp: OFObject +@interface TestApp: OFObject @end OF_APPLICATION_DELEGATE(TestApp) @implementation TestApp - (void)applicationDidFinishLaunching { IRCConnection *connection = [[IRCConnection alloc] init]; - connection.server = @"irc.freenode.net"; - connection.nickname = @"ObjIRC"; - connection.username = @"ObjIRC"; - connection.realname = @"ObjIRC"; - connection.delegate = self; + [connection setServer: @"irc.freenode.net"]; + [connection setNickname: @"ObjIRC"]; + [connection setUsername: @"ObjIRC"]; + [connection setRealname: @"ObjIRC"]; + [connection setDelegate: self]; [connection connect]; [connection handleConnection]; } @@ -134,8 +134,8 @@ } - (void)connection: (IRCConnection*)connection didReceiveNamesForChannel: (IRCChannel*)channel { - of_log(@"Users in %@: %@", channel, channel.users); + of_log(@"Users in %@: %@", channel, [channel users]); } @end