Implement case-mapping for buffers and message handler

This commit is contained in:
Simon Ser 2021-05-27 23:40:08 +02:00
parent e000832483
commit fc9dfa2dca
2 changed files with 24 additions and 12 deletions

View file

@ -434,6 +434,10 @@ export default class Client extends EventTarget {
}
}
isMyNick(nick) {
return this.cm(nick) == this.cm(this.nick);
}
/* Execute a command that expects a response. `done` is called with message
* events until it returns a truthy value. */
roundtrip(msg, done) {