1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

irc: fix display of outgoing STATUSMSG CTCP ACTION without arguments

This commit is contained in:
Sébastien Helleu
2023-05-27 11:57:17 +02:00
parent dbcb8d3dbf
commit 3a0141174b
2 changed files with 39 additions and 4 deletions
+4 -3
View File
@@ -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
{