@@ -123,10 +123,22 @@ [self sendLine: line]; [pool release]; } + +- (void)sendMessage: (OFString*)msg + toChannel: (IRCChannel*)channel +{ + [self sendLineWithFormat: @"PRIVMSG %@ :%@", channel.name, msg]; +} + +- (void)sendMessage: (OFString*)msg + toUser: (IRCUser*)user +{ + [self sendLineWithFormat: @"PRIVMSG %@ :%@", user.nickname, msg]; +} - (void)handleConnection { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFString *line;