diff --git a/src/common/outbound.c b/src/common/outbound.c index f8f73dd6..8241d78f 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -3350,6 +3350,8 @@ static void url_join_only (server *serv, char *tbuf, char *channel) { /* already connected, JOIN only. FIXME: support keys? */ + if (channel == NULL) + return; tbuf[0] = '#'; /* tbuf is 4kb */ safe_strcpy ((tbuf + 1), channel, 256);