1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

irc: remove extra space in CTCP ACTION message sent without arguments

Now when doing `/me` (without arguments), the message sent is:

  PRIVMSG #test :\x01ACTION\x01

instead of:

  PRIVMSG #test :\x01ACTION \x01
This commit is contained in:
Sébastien Helleu
2023-05-27 11:53:12 +02:00
parent a2e73d64d6
commit dbcb8d3dbf
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -1120,9 +1120,10 @@ irc_command_me_channel_message (struct t_irc_server *server,
server,
IRC_SERVER_SEND_OUTQ_PRIO_HIGH | IRC_SERVER_SEND_RETURN_LIST,
NULL,
"PRIVMSG %s :\01ACTION %s\01",
"PRIVMSG %s :\01ACTION%s%s\01",
channel->name,
message);
(message && message[0]) ? " " : "",
(message && message[0]) ? message : "");
if (list_messages)
{
list_size = weechat_arraylist_size (list_messages);