summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-01-15 09:52:23 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-01-15 09:52:23 +0100
commitb54d06630db4d804319e4d8f44d8bc1444f0f664 (patch)
treee613eccbb67ca229819692182222e7f6c56c8e01 /src/plugins
parentc13aa86c7925f266d04d07ddb79db1b18725336e (diff)
downloadweechat-b54d06630db4d804319e4d8f44d8bc1444f0f664.zip
irc: fix completion of channel topic with UTF-8 chars (issue #1739)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-completion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-completion.c b/src/plugins/irc/irc-completion.c
index 0d8653dc1..32ff98949 100644
--- a/src/plugins/irc/irc-completion.c
+++ b/src/plugins/irc/irc-completion.c
@@ -531,7 +531,7 @@ irc_completion_channel_topic_cb (const void *pointer, void *data,
{
if (irc_server_strncasecmp (ptr_server, ptr_channel->topic,
ptr_channel->name,
- strlen (ptr_channel->name)) == 0)
+ weechat_utf8_strlen (ptr_channel->name)) == 0)
{
/*
* if topic starts with channel name, add another channel name