DANKE ESLINT

This commit is contained in:
Flummi 2017-11-18 13:23:11 +01:00
parent 10130e3b5c
commit c365236921
2 changed files with 6 additions and 3 deletions

View File

@ -23,6 +23,7 @@
"semi": [
"error",
"always"
]
],
"no-console": "off"
}
}

View File

@ -37,6 +37,8 @@ class irc {
this.socket.on("data", msg => {
msg = this.parse(msg);
let tmpuser = {};
let tmpchan = {};
let chans = [];
switch (msg.command) { // auslagern!
// WHOIS BEGIN
case "307": // Rizon Account
@ -82,7 +84,7 @@ class irc {
this.server.user.set( msg.params[1].toLowerCase(), tmpuser );
break;
case "319": // Chanlist Todo
let tmpchan = new Map();
tmpchan = new Map();
tmpuser = {};
if (this.server.user.has( msg.params[1].toLowerCase() )) {
tmpuser = this.server.user.get( msg.params[1].toLowerCase() );
@ -90,7 +92,7 @@ class irc {
tmpchan = tmpuser.channels;
}
let chans = msg.params[2].trim().split(" ");
chans = msg.params[2].trim().split(" ");
for(let chan in chans) {
chan = chans[chan].split("#");
tmpchan.set(`#${chan[1]}`, chan[0]);