From 006a84f999248d1bc1c1e36fa3437765d4bd1142 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 4 Jul 2010 21:40:15 +0100 Subject: Kick the user instead of parting him/her when cleaning up a channel. This is what the older version also did so that Irssi won't clean up the window. --- irc_send.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'irc_send.c') diff --git a/irc_send.c b/irc_send.c index 3617d088..b62d2011 100644 --- a/irc_send.c +++ b/irc_send.c @@ -157,6 +157,12 @@ void irc_send_quit( irc_user_t *iu, const char *reason ) irc_write( iu->irc, ":%s!%s@%s QUIT :%s", iu->nick, iu->user, iu->host, reason ? : "" ); } +void irc_send_kick( irc_channel_t *ic, irc_user_t *iu, irc_user_t *kicker, const char *reason ) +{ + irc_write( ic->irc, ":%s!%s@%s KICK %s %s :%s", kicker->nick, kicker->user, + kicker->host, ic->name, iu->nick, reason ? : "" ); +} + void irc_send_names( irc_channel_t *ic ) { GSList *l; -- cgit v1.2.3