diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-12 00:22:17 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-12 00:22:17 +0200 |
commit | 824084011a9f3740d074957f7f769ab6f3547f79 (patch) | |
tree | 0d0c8fcc1b3a12fe6cae1db440311569bf2fce38 /irc_send.c | |
parent | ffa1173a0ea836029bae1f41ec13c64b39bfb6a4 (diff) |
Don't send the topic at join time if there is none. This seems to be the
standard.
Diffstat (limited to 'irc_send.c')
-rw-r--r-- | irc_send.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 ); } } |