1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

Add new IRC output queue for messages with low priority (like automatic CTCP replies), high priority is given to user messages or commands

This commit is contained in:
Sebastien Helleu
2010-01-17 15:56:28 +01:00
parent 9595fa75b2
commit 2eb82a08b1
21 changed files with 300 additions and 128 deletions
+4 -3
View File
@@ -124,8 +124,8 @@ irc_input_send_user_message (struct t_gui_buffer *buffer, char *text)
}
}
irc_server_sendf (ptr_server, 1, "PRIVMSG %s :%s",
ptr_channel->name, text);
irc_server_sendf (ptr_server, IRC_SERVER_OUTQUEUE_PRIO_HIGH,
"PRIVMSG %s :%s", ptr_channel->name, text);
irc_input_user_message_display (buffer, text);
if (next)
@@ -157,7 +157,8 @@ irc_input_data_cb (void *data, struct t_gui_buffer *buffer,
&& (input_data[0] == '/') && (input_data[1] != '/'))
{
if (ptr_server)
irc_server_sendf (ptr_server, 1, input_data + 1);
irc_server_sendf (ptr_server, IRC_SERVER_OUTQUEUE_PRIO_HIGH,
input_data + 1);
return WEECHAT_RC_OK;
}