...
This commit is contained in:
@ -18,6 +18,7 @@ class irc {
|
||||
this.username = this.options.username || "test";
|
||||
this.realname = this.options.realname || "test";
|
||||
this.channels = this.options.channels || [];
|
||||
this._recachetime = (10 * 1000); // 10 minutes
|
||||
this.server = {
|
||||
motd: "",
|
||||
me: {},
|
||||
@ -75,9 +76,10 @@ class irc {
|
||||
account: tmpuser.account || false,
|
||||
registered: tmpuser.registered || false,
|
||||
oper: tmpuser.oper || false,
|
||||
channels: tmpuser.channels || []
|
||||
channels: tmpuser.channels || [],
|
||||
cached: ~~(Date.now() / 1000)
|
||||
};
|
||||
this.server.user.set( msg.params[1], tmpuser );
|
||||
this.server.user.set( msg.params[1].toLowerCase(), tmpuser );
|
||||
break;
|
||||
case "319": // Chanlist Todo
|
||||
let tmpchan = new Map();
|
||||
@ -119,6 +121,7 @@ class irc {
|
||||
username: msg.params[2],
|
||||
hostname: msg.params[3]
|
||||
});
|
||||
this.send(`WHOIS ${msg.params[5]}`);
|
||||
break;
|
||||
case "315": // who_end
|
||||
console.log(this.server.channel);
|
||||
|
Reference in New Issue
Block a user