diff --git a/index.js b/index.js index 2f508b1..47561bc 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,18 @@ client.addListener('registered', () => { if (nick === settings.username) sendMessage(channel, "# Appears as Jhenna_Hina.http://www.mermeliz.com/hina/dl/Jhenna_Hina.AVB") }) - client.addListener('quit', (channel, nick, by, reason) => { + client.addListener('part', (channel, nick, reason, _message) => { + console.log(channel) + logMessage(nick, channel, "Parted: " + reason) + }) + + client.addListener('quit', (nick, reason, channels, _message) => { + for(channel in channels){ + logMessage(nick, channel, "Left.") + } + }) + + client.addListener('kick', (channel, nick, by, reason, _message) => { logMessage(nick, channel, "Kicked by: " + by + ": " + reason) })