diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-09 15:55:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-09 15:55:31 +0200 |
commit | 5991278637d0250901949126ddf6e6dcc75da76e (patch) | |
tree | c4a68f7d0869af31c4de75221996f99c32375697 /src/plugins | |
parent | 1a8c40826eb87ee786d26b3e97133196b44e01d6 (diff) | |
download | weechat-5991278637d0250901949126ddf6e6dcc75da76e.zip |
irc: rename function irc_server_buffer_set_input_multiline to irc_server_set_buffer_input_multiline
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 12 | ||||
-rw-r--r-- | src/plugins/irc/irc-server.c | 4 | ||||
-rw-r--r-- | src/plugins/irc/irc-server.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 48f3588b0..def738d8b 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -1073,7 +1073,7 @@ IRC_PROTOCOL_CALLBACK(cap) if (!ctxt->server->checking_cap_list) { weechat_hashtable_remove_all (ctxt->server->cap_list); - irc_server_buffer_set_input_multiline (ctxt->server, 0); + irc_server_set_buffer_input_multiline (ctxt->server, 0); ctxt->server->checking_cap_list = 1; } @@ -1105,7 +1105,7 @@ IRC_PROTOCOL_CALLBACK(cap) weechat_hashtable_set (ctxt->server->cap_list, str_name, pos_value + 1); if (strcmp (str_name, "draft/multiline") == 0) - irc_server_buffer_set_input_multiline (ctxt->server, 1); + irc_server_set_buffer_input_multiline (ctxt->server, 1); free (str_name); } } @@ -1114,7 +1114,7 @@ IRC_PROTOCOL_CALLBACK(cap) weechat_hashtable_set (ctxt->server->cap_list, caps_enabled[j], NULL); if (strcmp (caps_enabled[j], "draft/multiline") == 0) - irc_server_buffer_set_input_multiline (ctxt->server, 1); + irc_server_set_buffer_input_multiline (ctxt->server, 1); } } weechat_string_free_split (caps_enabled); @@ -1173,7 +1173,7 @@ IRC_PROTOCOL_CALLBACK(cap) weechat_hashtable_remove (ctxt->server->cap_list, caps_supported[j] + 1); if (strcmp (caps_supported[j] + 1, "draft/multiline") == 0) - irc_server_buffer_set_input_multiline (ctxt->server, 0); + irc_server_set_buffer_input_multiline (ctxt->server, 0); } else { @@ -1185,7 +1185,7 @@ IRC_PROTOCOL_CALLBACK(cap) weechat_hashtable_set (ctxt->server->cap_list, caps_supported[j], NULL); if (strcmp (caps_supported[j], "draft/multiline") == 0) - irc_server_buffer_set_input_multiline (ctxt->server, 1); + irc_server_set_buffer_input_multiline (ctxt->server, 1); if (strcmp (caps_supported[j], "sasl") == 0) sasl_to_do = 1; } @@ -1360,7 +1360,7 @@ IRC_PROTOCOL_CALLBACK(cap) weechat_hashtable_remove (ctxt->server->cap_ls, caps_removed[j]); weechat_hashtable_remove (ctxt->server->cap_list, caps_removed[j]); if (strcmp (caps_removed[j], "draft/multiline") == 0) - irc_server_buffer_set_input_multiline (ctxt->server, 0); + irc_server_set_buffer_input_multiline (ctxt->server, 0); } weechat_string_free_split (caps_removed); } diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index b9dc7992e..fc531c34c 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -1591,7 +1591,7 @@ irc_server_get_default_msg (const char *default_msg, */ void -irc_server_buffer_set_input_multiline (struct t_irc_server *server, +irc_server_set_buffer_input_multiline (struct t_irc_server *server, int multiline) { struct t_irc_channel *ptr_channel; @@ -5805,7 +5805,7 @@ irc_server_disconnect (struct t_irc_server *server, int switch_address, irc_server_set_buffer_title (server); - irc_server_buffer_set_input_multiline (server, 0); + irc_server_set_buffer_input_multiline (server, 0); server->disconnected = 1; diff --git a/src/plugins/irc/irc-server.h b/src/plugins/irc/irc-server.h index 93dcfc07f..6a1c2d48f 100644 --- a/src/plugins/irc/irc-server.h +++ b/src/plugins/irc/irc-server.h @@ -382,7 +382,7 @@ extern char *irc_server_get_default_msg (const char *default_msg, struct t_irc_server *server, const char *channel_name, const char *target_nick); -extern void irc_server_buffer_set_input_multiline (struct t_irc_server *server, +extern void irc_server_set_buffer_input_multiline (struct t_irc_server *server, int multiline); extern int irc_server_has_channels (struct t_irc_server *server); extern struct t_irc_server *irc_server_alloc (const char *name); |