From 4d4a7ed7b4af600a6b8ce5528cf7ace9c01bf358 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 21 Aug 2010 18:46:47 +0100 Subject: 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. --- irc_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc_send.c') 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, ... ) -- cgit v1.2.3