1
0
forked from keinBot/cuffeo
- use has() instead of includes() on Map.. stupid
- account has to be false if no account is provided
+ version bump
This commit is contained in:
Flummi
2019-11-26 05:32:11 +01:00
parent d3b9192fcc
commit d948f7f582
3 changed files with 3 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ export default class irc extends EventEmitter {
channel: tmp.params[0],
channelid: tmp.params[0],
user: { ...this.parsePrefix(tmp.prefix), ...{
account: this.server.user.get(this.parsePrefix(tmp.prefix).nick).account,
account: this.server.user.has(this.parsePrefix(tmp.prefix).nick) ? this.server.user.get(this.parsePrefix(tmp.prefix).nick).account : false,
prefix: tmp.prefix.charAt(0) === ":" ? tmp.prefix.substring(1) : tmp.prefix
}},
message: tmp.params[1].replace(/\u0002/, ""),