ez fix lol

This commit is contained in:
Flummi 2018-03-10 06:20:35 +01:00
parent 61451c39a4
commit baccf7109f
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { logger } from "../inc/log";
import { getLevel } from "../inc/admin";
import modules from "./irc/main";
import modules from "./irc";
import net from "net";
import tls from "tls";
@ -151,11 +151,12 @@ export class irc extends EventEmitter {
cached: ~~(Date.now() / 1000)
};
this.server.user.set(user, tmpuser);
this.send(`WHOIS ${user}`);
}
parsePrefix(prefix) {
prefix = /:?(.*)\!(.*)@(.*)/.exec(prefix);
if(!prefix[1])
return false; //this.parsePrefix(arguments);
return {
nick: prefix[1],
username: prefix[2],

View File

@ -1,5 +1,5 @@
export default client => {
client._cmd.set("JOIN", function (msg) { // join
this.send(`WHO ${msg.params[0]}`);
//this.send(`WHO ${msg.params[0]}`);
}.bind(client));
};