mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-15 03:15:01 -05: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
1 changed files with 2 additions and 1 deletions
|
@ -436,11 +436,12 @@ export default class Client extends EventTarget {
|
||||||
|
|
||||||
setCaseMapping(name) {
|
setCaseMapping(name) {
|
||||||
this.cm = irc.CaseMapping.byName(name);
|
this.cm = irc.CaseMapping.byName(name);
|
||||||
this.whoisDB = new irc.CaseMapMap(this.whoisDB, this.cm);
|
|
||||||
if (!this.cm) {
|
if (!this.cm) {
|
||||||
console.error("Unsupported case-mapping '" + name + "', falling back to RFC 1459");
|
console.error("Unsupported case-mapping '" + name + "', falling back to RFC 1459");
|
||||||
this.cm = irc.CaseMapping.RFC1459;
|
this.cm = irc.CaseMapping.RFC1459;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.whoisDB = new irc.CaseMapMap(this.whoisDB, this.cm);
|
||||||
}
|
}
|
||||||
|
|
||||||
isMyNick(nick) {
|
isMyNick(nick) {
|
||||||
|
|
Loading…
Reference in a new issue