1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Fix usage of double-equals-comparison to triple-equals

This commit is contained in:
MinusGix 2020-02-18 13:57:20 -06:00
parent d30f82962a
commit a1c0015fe2

View File

@ -26,7 +26,7 @@ export async function run(core, server, socket, data) {
}
let channel;
if (typeof data.to == 'string') {
if (typeof data.to === 'string') {
channel = data.to;
} else {
channel = Math.random().toString(36).substr(2, 8);