diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-01-17 15:56:28 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-01-17 15:56:28 +0100 |
commit | 2eb82a08b1fbf83305ae318b9db6bb46adef11b2 (patch) | |
tree | 18ee392d21a15243665d718af0b0fbcce09b3f36 /src/plugins/irc/irc-input.c | |
parent | 9595fa75b280b947e1432c06888194c047eb3c78 (diff) | |
download | weechat-2eb82a08b1fbf83305ae318b9db6bb46adef11b2.zip |
Add new IRC output queue for messages with low priority (like automatic CTCP replies), high priority is given to user messages or commands
Diffstat (limited to 'src/plugins/irc/irc-input.c')
-rw-r--r-- | src/plugins/irc/irc-input.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-input.c b/src/plugins/irc/irc-input.c index c7e68cb8f..2d75c1f41 100644 --- a/src/plugins/irc/irc-input.c +++ b/src/plugins/irc/irc-input.c @@ -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; } |