aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-06 02:11:13 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-06 02:11:13 +0100
commit1f0224cdfd238060810679b3d6ba1a2bc49e4493 (patch)
tree57ba738a1413a2db63847c1061cf5f45d73ac4fb /irc_send.c
parent18da20bf7690ca3c1e9cf4b70c2749a11c75b339 (diff)
Send one /QUIT instead of one or more /PARTs for a user that is being
removed. Also restored netsplit simulation.
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c5
1 files changed, 5 insertions, 0 deletions
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;