Index: src/IRCConnection.h ================================================================== --- src/IRCConnection.h +++ src/IRCConnection.h @@ -83,24 +83,27 @@ @property (copy) OFString *server; @property (assign) uint16_t port; @property (copy) OFString *nickname, *username, *realname; @property (retain) id delegate; +- (void)sendLine: (OFString*)line; +- (void)sendLineWithFormat: (OFConstantString*)line, ...; - (void)connect; - (void)disconnect; - (void)disconnectWithReason: (OFString*)reason; - (void)joinChannel: (OFString*)channelName; - (void)leaveChannel: (IRCChannel*)channel; - (void)leaveChannel: (IRCChannel*)channel withReason: (OFString*)reason; -- (void)sendLine: (OFString*)line; -- (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)kickUser: (IRCUser*)user + fromChannel: (IRCChannel*)channel + withReason: (OFString*)reason; - (void)handleConnection; @end Index: src/IRCConnection.m ================================================================== --- src/IRCConnection.m +++ src/IRCConnection.m @@ -147,10 +147,18 @@ - (void)sendNotice: (OFString*)notice toChannel: (IRCChannel*)channel { [self sendLineWithFormat: @"NOTICE %@ :%@", channel.name, notice]; } + +- (void)kickUser: (IRCUser*)user + fromChannel: (IRCChannel*)channel + withReason: (OFString*)reason +{ + [self sendLineWithFormat: @"KICK %@ %@ :%@", + channel.name, user.nickname, reason]; +} - (void)handleConnection { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFString *line;