remove some logging from non-debug
This commit is contained in:
@@ -331,7 +331,6 @@ class WTVIRC {
|
|||||||
for (const [channel, users] of this.channels.entries()) {
|
for (const [channel, users] of this.channels.entries()) {
|
||||||
const modes = this.channelmodes.get(channel) || [];
|
const modes = this.channelmodes.get(channel) || [];
|
||||||
for (const user of users) {
|
for (const user of users) {
|
||||||
console.log(`Sending SJOIN for user ${user} in channel ${channel}`);
|
|
||||||
let userPrefix = '';
|
let userPrefix = '';
|
||||||
if ((this.channelops.get(channel) || new Set()).has(user)) {
|
if ((this.channelops.get(channel) || new Set()).has(user)) {
|
||||||
userPrefix = '@';
|
userPrefix = '@';
|
||||||
@@ -1018,7 +1017,9 @@ class WTVIRC {
|
|||||||
socket.uniqueId = prefix;
|
socket.uniqueId = prefix;
|
||||||
} else {
|
} else {
|
||||||
console.warn(`Socket uniqueId mismatch: ${socket.uniqueId} !== ${prefix}`);
|
console.warn(`Socket uniqueId mismatch: ${socket.uniqueId} !== ${prefix}`);
|
||||||
console.log(line);
|
if (this.debug) {
|
||||||
|
console.log(line);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user