mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 23:36:37 +02:00
irc: use high priority queue for sending modes and wallchops messages
This commit is contained in:
@@ -79,6 +79,7 @@ Version 0.3.6 (under dev!)
|
||||
description for option when function is called)
|
||||
* scripts: fix crash with scripts not auto-loaded having a buffer opened after
|
||||
/upgrade (input/close callbacks for buffer not set properly)
|
||||
* irc: use high priority queue for sending modes and wallchops messages
|
||||
* irc: allow reason for command /disconnect
|
||||
* irc: allow server name for commands /die and /restart
|
||||
* irc: add new info_hashtable "irc_message_split"
|
||||
|
||||
@@ -75,7 +75,7 @@ irc_command_mode_nicks (struct t_irc_server *server, const char *channel,
|
||||
strcat (command, " ");
|
||||
strcat (command, argv[i]);
|
||||
}
|
||||
irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_LOW, NULL,
|
||||
irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_HIGH, NULL,
|
||||
"%s", command);
|
||||
free (command);
|
||||
}
|
||||
@@ -2365,13 +2365,13 @@ irc_command_mode_server (struct t_irc_server *server,
|
||||
{
|
||||
if (channel && arguments)
|
||||
{
|
||||
irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_LOW, NULL,
|
||||
irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_HIGH, NULL,
|
||||
"MODE %s %s",
|
||||
channel->name, arguments);
|
||||
}
|
||||
else
|
||||
{
|
||||
irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_LOW, NULL,
|
||||
irc_server_sendf (server, IRC_SERVER_SEND_OUTQ_PRIO_HIGH, NULL,
|
||||
"MODE %s",
|
||||
(channel) ? channel->name : arguments);
|
||||
}
|
||||
@@ -4586,7 +4586,7 @@ irc_command_wallchops (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
&& (strcmp (ptr_nick->name, ptr_server->nick) != 0))
|
||||
{
|
||||
irc_server_sendf (ptr_server,
|
||||
IRC_SERVER_SEND_OUTQ_PRIO_LOW, NULL,
|
||||
IRC_SERVER_SEND_OUTQ_PRIO_HIGH, NULL,
|
||||
"NOTICE %s :%s",
|
||||
ptr_nick->name, argv_eol[pos_args]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user