diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-06 02:11:13 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-06 02:11:13 +0100 |
commit | 1f0224cdfd238060810679b3d6ba1a2bc49e4493 (patch) | |
tree | 57ba738a1413a2db63847c1061cf5f45d73ac4fb /irc_send.c | |
parent | 18da20bf7690ca3c1e9cf4b70c2749a11c75b339 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |