summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-server.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-11-26 18:56:33 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-11-26 18:58:48 +0100
commite74b5db2539c2e74c01d4af01469d6186f11bd11 (patch)
tree4888e6ae9b4c05551b76afd89835049d9ea3ee19 /src/plugins/irc/irc-server.c
parent6d427421de28fb4d29e9dc0edca360219eb6571f (diff)
downloadweechat-e74b5db2539c2e74c01d4af01469d6186f11bd11.zip
irc: remove trailing "\r\n" in signals "irc_out" and "irc_outtags" when messages are queued
Diffstat (limited to 'src/plugins/irc/irc-server.c')
-rw-r--r--src/plugins/irc/irc-server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 2fd18cf31..40f444b93 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -2850,11 +2850,10 @@ irc_server_outqueue_send (struct t_irc_server *server)
'\r');
if (pos)
pos[0] = '\0';
+
irc_raw_print (server, IRC_RAW_FLAG_SEND |
((server->outqueue[priority]->modified) ? IRC_RAW_FLAG_MODIFIED : 0),
server->outqueue[priority]->message_after_mod);
- if (pos)
- pos[0] = '\r';
/* send signal with command that will be sent to server */
(void) irc_server_send_signal (
@@ -2872,6 +2871,9 @@ irc_server_outqueue_send (struct t_irc_server *server)
if (tags_to_send)
free (tags_to_send);
+ if (pos)
+ pos[0] = '\r';
+
/* send command */
irc_server_send (
server, server->outqueue[priority]->message_after_mod,