Add support for kicking a user.

FossilOrigin-Name: 4e0ae8ca4e99ea1eaefd15503ca0d2402814a1a10d4ad3267b0b9e2442ed2aa2
This commit is contained in:
Jonathan Schleifer 2011-09-10 23:11:18 +00:00
parent 842476ea96
commit 50a00bbe98
2 changed files with 13 additions and 2 deletions

View file

@ -150,6 +150,14 @@
[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];