Index: src/IRCConnection.h ================================================================== --- src/IRCConnection.h +++ src/IRCConnection.h @@ -96,7 +96,11 @@ - (void)sendLineWithFormat: (OFConstantString*)line, ...; - (void)sendMessage: (OFString*)msg toChannel: (IRCChannel*)channel; - (void)sendMessage: (OFString*)msg toUser: (IRCUser*)user; +- (void)sendNotice: (OFString*)notice + toUser: (IRCUser*)user; +- (void)sendNotice: (OFString*)notice + toChannel: (IRCChannel*)channel; - (void)handleConnection; @end Index: src/IRCConnection.m ================================================================== --- src/IRCConnection.m +++ src/IRCConnection.m @@ -135,10 +135,22 @@ - (void)sendMessage: (OFString*)msg toUser: (IRCUser*)user { [self sendLineWithFormat: @"PRIVMSG %@ :%@", user.nickname, msg]; } + +- (void)sendNotice: (OFString*)notice + toUser: (IRCUser*)user +{ + [self sendLineWithFormat: @"NOTICE %@ :%@", user.nickname, notice]; +} + +- (void)sendNotice: (OFString*)notice + toChannel: (IRCChannel*)channel +{ + [self sendLineWithFormat: @"NOTICE %@ :%@", channel.name, notice]; +} - (void)handleConnection { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFString *line;