add explicit IRC-aware comparison keys

This commit is contained in:
2026-10-02 14:13:30 -06:00
parent 73ccded3ac
commit 5029a34fcb
3 changed files with 105 additions and 0 deletions
+10
View File
@@ -1187,6 +1187,16 @@ zoitechat_get_info (zoitechat_plugin *ph, const char *id)
return text_find_format_string (e);
}
/* Report the comparison actually used by this connection, not an
* advertised mapping that the current core does not implement. */
if (strcmp (id, "casemapping") == 0)
{
if (!is_session (ph->context))
return NULL;
return ph->context->server->p_cmp == g_ascii_strcasecmp
? "ascii" : "rfc1459";
}
hash = str_hash (id);
/* do the session independant ones first */
switch (hash)