mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Fixed changenick command, userExists now works.
This commit is contained in:
parent
8820968c73
commit
d40db7077b
@ -45,7 +45,7 @@ exports.run = async (core, server, socket, data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let userExists = server.findSockets({
|
let userExists = server.findSockets({
|
||||||
channel: data.channel,
|
channel: socket.channel,
|
||||||
nick: (targetNick) => targetNick.toLowerCase() === newNick.toLowerCase()
|
nick: (targetNick) => targetNick.toLowerCase() === newNick.toLowerCase()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user