1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

xfer: make xfer types and protocols case sensitive (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-27 19:50:15 +01:00
parent f9a80e7d4d
commit c9ac4fef4b
+8 -2
View File
@@ -200,9 +200,12 @@ xfer_search_type (const char *type)
{
int i;
if (!type)
return -1;
for (i = 0; i < XFER_NUM_TYPES; i++)
{
if (weechat_strcasecmp (xfer_type_string[i], type) == 0)
if (strcmp (xfer_type_string[i], type) == 0)
return i;
}
@@ -221,9 +224,12 @@ xfer_search_protocol (const char *protocol)
{
int i;
if (!protocol)
return -1;
for (i = 0; i < XFER_NUM_PROTOCOLS; i++)
{
if (weechat_strcasecmp (xfer_protocol_string[i], protocol) == 0)
if (strcmp (xfer_protocol_string[i], protocol) == 0)
return i;
}