diff options
-rw-r--r-- | src/plugins/relay/relay-auth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-auth.c b/src/plugins/relay/relay-auth.c index 05dde1630..af958d8f4 100644 --- a/src/plugins/relay/relay-auth.c +++ b/src/plugins/relay/relay-auth.c @@ -276,8 +276,9 @@ relay_auth_check_salt (struct t_relay_client *client, const char *salt_hexa) return (salt_hexa && client->nonce && (strlen (salt_hexa) > strlen (client->nonce)) - && (weechat_strncasecmp (salt_hexa, client->nonce, - strlen (client->nonce)) == 0)) ? 1 : 0; + && (weechat_strncasecmp ( + salt_hexa, client->nonce, + weechat_utf8_strlen (client->nonce)) == 0)) ? 1 : 0; } /* |