diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-21 18:46:47 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-21 18:46:47 +0100 |
commit | 4d4a7ed7b4af600a6b8ce5528cf7ace9c01bf358 (patch) | |
tree | 5e5830845e50c3841e635ea459e77f6fb8702f9e /irc_send.c | |
parent | bad41f567bd8b8e04d092e8e6771fee74b205032 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, ... ) |