aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c2
1 files changed, 1 insertions, 1 deletions
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 )