fix this.findUser()
This commit is contained in:
@@ -2444,7 +2444,7 @@ class WTVIRC {
|
|||||||
socket.write(`:${this.servername} 401 ${socket.nickname} ${params[0]} :No such nick/channel\r\n`);
|
socket.write(`:${this.servername} 401 ${socket.nickname} ${params[0]} :No such nick/channel\r\n`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
var whoisSocket = Array.from(this.nicknames.keys()).find(s => this.nicknames.get(s).toLowerCase() === whoisNick.toLowerCase());
|
var whoisSocket = Array.from(this.nicknames.keys()).find(s => this.nicknames.get(s)=== whoisNick);
|
||||||
if (whoisSocket) {
|
if (whoisSocket) {
|
||||||
whoisNick = whoisSocket.nickname;
|
whoisNick = whoisSocket.nickname;
|
||||||
const whois_username = this.usernames.get(whoisNick);
|
const whois_username = this.usernames.get(whoisNick);
|
||||||
@@ -3886,7 +3886,7 @@ class WTVIRC {
|
|||||||
let foundUser = null;
|
let foundUser = null;
|
||||||
for (const [socket, nick] of this.nicknames.entries()) {
|
for (const [socket, nick] of this.nicknames.entries()) {
|
||||||
if (nick.toLowerCase() === username.toLowerCase()) {
|
if (nick.toLowerCase() === username.toLowerCase()) {
|
||||||
foundUser = socket;
|
foundUser = nick;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user