1
0
forked from keinBot/cuffeo

photo support. don't ask

This commit is contained in:
Flummi
2021-05-11 07:32:08 +00:00
parent 7f6cb345b5
commit 6d66f2a5e1
3 changed files with 9 additions and 2 deletions

View File

@@ -158,8 +158,11 @@ export default class irc extends EventEmitter {
if (tmpuser.cached < ~~(Date.now() / 1000) - this._recachetime)
whois.push(u);
}
whois = whois.filter(e => e.trim());
if(whois.length === 0)
return false;
this.emit("data", ["info", `[irc] whois > ${whois}`]);
this.send(`WHOIS ${whois}`);
this.send(`WHOIS ${whois.join(',')}`);
}
parsePrefix(prefix) {
prefix = /:?(.*)\!(.*)@(.*)/.exec(prefix);