Switch to server buffer on server name click

Closes: https://todo.sr.ht/~emersion/gamja/68
This commit is contained in:
Simon Ser 2021-06-10 12:03:50 +02:00
parent d2e41666ad
commit dd8eca1cfe
2 changed files with 7 additions and 2 deletions

View file

@ -471,6 +471,10 @@ export default class Client extends EventTarget {
this.whoisDB = new irc.CaseMapMap(this.whoisDB, this.cm);
}
isServer(name) {
return name === "*" || this.cm(name) === this.cm(this.serverPrefix.name);
}
isMyNick(nick) {
return this.cm(nick) == this.cm(this.nick);
}