mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 23:43:42 +01:00
Fix WHOIS DB not using case-mapping fallback
In case the server advertises an unsupported case-mapping, we have a fallback.
This commit is contained in:
parent
7b762b3e8a
commit
5a3edf4769
@ -436,11 +436,12 @@ export default class Client extends EventTarget {
|
||||
|
||||
setCaseMapping(name) {
|
||||
this.cm = irc.CaseMapping.byName(name);
|
||||
this.whoisDB = new irc.CaseMapMap(this.whoisDB, this.cm);
|
||||
if (!this.cm) {
|
||||
console.error("Unsupported case-mapping '" + name + "', falling back to RFC 1459");
|
||||
this.cm = irc.CaseMapping.RFC1459;
|
||||
}
|
||||
|
||||
this.whoisDB = new irc.CaseMapMap(this.whoisDB, this.cm);
|
||||
}
|
||||
|
||||
isMyNick(nick) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user