aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--irc_send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/irc_send.c b/irc_send.c
index cb387059..5f4dc350 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -326,7 +326,7 @@ void irc_send_msg( irc_user_t *iu, const char *type, const char *dst, const char
void irc_send_msg_raw( irc_user_t *iu, const char *type, const char *dst, const char *msg )
{
irc_write( iu->irc, ":%s!%s@%s %s %s :%s",
- iu->nick, iu->user, iu->host, type, dst, msg );
+ iu->nick, iu->user, iu->host, type, dst, msg && *msg ? msg : " " );
}
void irc_send_msg_f( irc_user_t *iu, const char *type, const char *dst, const char *format, ... )