From 18da20bf7690ca3c1e9cf4b70c2749a11c75b339 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 6 Jun 2010 01:33:33 +0100 Subject: Added /part msgs, and the ability to silently remove users from channels (when sending a /quit instead, for example). --- irc_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc_send.c') diff --git a/irc_send.c b/irc_send.c index b3283152..72a90724 100644 --- a/irc_send.c +++ b/irc_send.c @@ -149,7 +149,7 @@ void irc_send_join( irc_channel_t *ic, irc_user_t *iu ) 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 ); + irc_write( ic->irc, ":%s!%s@%s PART %s :%s", iu->nick, iu->user, iu->host, ic->name, reason ? : "" ); } void irc_send_names( irc_channel_t *ic ) -- cgit v1.2.3