aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-21 18:46:47 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-21 18:46:47 +0100
commit4d4a7ed7b4af600a6b8ce5528cf7ace9c01bf358 (patch)
tree5e5830845e50c3841e635ea459e77f6fb8702f9e /irc_send.c
parentbad41f567bd8b8e04d092e8e6771fee74b205032 (diff)
Some IRC clients/proxies eat empty PRIVMSG lines. BitlBee likes to send them
in multiline msgs/help entries/etc. Send one space instead of a completely empty line so these are shown to the user.
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 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, ... )