summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/irc/irc-protocol.c12
-rw-r--r--src/plugins/irc/irc-server.c4
-rw-r--r--src/plugins/irc/irc-server.h2
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp4
4 files changed, 11 insertions, 11 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);
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 115e078fb..d8845b858 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -1754,7 +1754,7 @@ TEST(IrcProtocolWithServer, batch_with_batch_cap)
/* assume "draft/multiline" capability is enabled in server */
hashtable_set (ptr_server->cap_list, "draft/multiline", NULL);
- irc_server_buffer_set_input_multiline (ptr_server, 1);
+ irc_server_set_buffer_input_multiline (ptr_server, 1);
/* multiline */
RECV("@time=2023-08-09T07:43:01.830Z;msgid=icqfzy7zdbpix4gy8pvzuv49kw "
@@ -1786,7 +1786,7 @@ TEST(IrcProtocolWithServer, batch_with_batch_cap)
"irc_action,notify_message,nick_bob,host_user_b@host_b,log1");
hashtable_remove (ptr_server->cap_list, "draft/multiline");
- irc_server_buffer_set_input_multiline (ptr_server, 0);
+ irc_server_set_buffer_input_multiline (ptr_server, 0);
hashtable_remove (ptr_server->cap_list, "batch");
}