diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-27 11:57:17 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-27 16:49:08 +0200 |
commit | 3a0141174b6a10f8f4816028f44a9093fb22ce1f (patch) | |
tree | f93388d414ef65b3cffbba4b629009115e4452e7 /src/plugins | |
parent | dbcb8d3dbf3c4247d675ac87f0e4255bbfddc564 (diff) | |
download | weechat-3a0141174b6a10f8f4816028f44a9093fb22ce1f.zip |
irc: fix display of outgoing STATUSMSG CTCP ACTION without arguments
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-ctcp.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 { |