diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-12-18 13:43:01 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-12-18 13:43:01 -0300 |
commit | 014b242df803089c34084de3d806a7c4e4dad75e (patch) | |
tree | 12dd5534a445fedc63b8219e48951bff0b3d2283 /src/common/modes.c | |
parent | d049be950cfaca6311b575890e81521d62db68d7 (diff) | |
parent | bb7a03e9f68a775ca93dd6ad8ea61e4f1d2ba81b (diff) |
Merge remote-tracking branch 'upstream/master' into default
Diffstat (limited to 'src/common/modes.c')
-rw-r--r-- | src/common/modes.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/modes.c b/src/common/modes.c index 756f0858..d8fd75aa 100644 --- a/src/common/modes.c +++ b/src/common/modes.c @@ -918,8 +918,12 @@ inbound_005 (server * serv, char *word[], const message_tags_data *tags_data) server_set_encoding (serv, "UTF-8"); } else if (g_strcmp0 (tokname, "NAMESX") == 0) { - /* 12345678901234567 */ - tcp_send_len (serv, "PROTOCTL NAMESX\r\n", 17); + if (tokadding && !serv->have_namesx) + { + /* only use protoctl if the server doesn't have the equivalent cap */ + tcp_send_len (serv, "PROTOCTL NAMESX\r\n", 17); + serv->have_namesx = TRUE; + } } else if (g_strcmp0 (tokname, "WHOX") == 0) { serv->have_whox = tokadding; |