From 3a0141174b6a10f8f4816028f44a9093fb22ce1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 27 May 2023 11:57:17 +0200 Subject: irc: fix display of outgoing STATUSMSG CTCP ACTION without arguments --- src/plugins/irc/irc-ctcp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c index c3a75d561..0a0d32900 100644 --- a/src/plugins/irc/irc-ctcp.c +++ b/src/plugins/irc/irc-ctcp.c @@ -1318,7 +1318,7 @@ irc_ctcp_display_send (struct t_irc_server *server, "irc_action,self_msg,notify_none,no_highlight", server->nick, NULL), - "%s%s -> %s%s%s: %s%s%s%s %s", + "%s%s -> %s%s%s: %s%s%s%s%s%s", weechat_prefix ("network"), /* TRANSLATORS: "Action" is an IRC CTCP "ACTION" sent with /me */ _("Action"), @@ -1328,8 +1328,9 @@ irc_ctcp_display_send (struct t_irc_server *server, irc_nick_mode_for_display (server, ptr_nick, 0), IRC_COLOR_CHAT_NICK_SELF, server->nick, - IRC_COLOR_RESET, - args); + (args && args[0]) ? IRC_COLOR_RESET : "", + (args && args[0]) ? " " : "", + (args && args[0]) ? args : ""); } else { -- cgit v1.2.3