From 1f0224cdfd238060810679b3d6ba1a2bc49e4493 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 6 Jun 2010 02:11:13 +0100 Subject: Send one /QUIT instead of one or more /PARTs for a user that is being removed. Also restored netsplit simulation. --- irc_send.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'irc_send.c') diff --git a/irc_send.c b/irc_send.c index 72a90724..41214428 100644 --- a/irc_send.c +++ b/irc_send.c @@ -152,6 +152,11 @@ void irc_send_part( irc_channel_t *ic, irc_user_t *iu, const char *reason ) irc_write( ic->irc, ":%s!%s@%s PART %s :%s", iu->nick, iu->user, iu->host, ic->name, reason ? : "" ); } +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_names( irc_channel_t *ic ) { GSList *l; -- cgit v1.2.3