aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--irc_send.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/irc_send.c b/irc_send.c
index 89b10020..b78b90bd 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -149,7 +149,8 @@ void irc_send_join( irc_channel_t *ic, irc_user_t *iu )
{
irc_write( irc, ":%s MODE %s +%s", irc->root->host, ic->name, ic->mode );
irc_send_names( ic );
- irc_send_topic( ic, FALSE );
+ if( ic->topic && *ic->topic )
+ irc_send_topic( ic, FALSE );
}
}