.
This commit is contained in:
parent
20b1b5a98e
commit
2a51b66742
|
@ -79,8 +79,22 @@ class irc {
|
||||||
this.server.user.set( msg.params[1], tmpuser );
|
this.server.user.set( msg.params[1], tmpuser );
|
||||||
break;
|
break;
|
||||||
case "319": // Chanlist Todo
|
case "319": // Chanlist Todo
|
||||||
//let tmpchan = {};
|
let tmpchan = new Map();
|
||||||
//if(this.server.user.has(msg.params[1]))
|
tmpuser = {};
|
||||||
|
if(this.server.user.has( msg.params[1] )) {
|
||||||
|
tmpuser = this.server.user.get( msg.params[1] );
|
||||||
|
if(tmpuser.channels)
|
||||||
|
tmpchan = tmpuser.channels;
|
||||||
|
}
|
||||||
|
|
||||||
|
let chans = msg.params[2].trim().split(" ");
|
||||||
|
for(let chan in chans) {
|
||||||
|
chan = chans[chan].split("#");
|
||||||
|
tmpchan.set(`#${chan[1]}`, chan[0]);
|
||||||
|
}
|
||||||
|
tmpuser.channels = tmpchan;
|
||||||
|
|
||||||
|
this.server.user.set( msg.params[1], tmpuser );
|
||||||
break;
|
break;
|
||||||
case "330": // Quarknet
|
case "330": // Quarknet
|
||||||
tmpuser = {};
|
tmpuser = {};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user