diff --git a/.gitignore b/.gitignore index b4a39b9..576c933 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ logs/* !logs/.gitkeep -node_modules \ No newline at end of file +node_modules +settings.json \ No newline at end of file diff --git a/index.js b/index.js index 47561bc..d515487 100644 --- a/index.js +++ b/index.js @@ -41,8 +41,8 @@ client.addListener('registered', () => { }) client.addListener('quit', (nick, reason, channels, _message) => { - for(channel in channels){ - logMessage(nick, channel, "Left.") + for(i in channels){ + logMessage(nick, channels[i], "Left.") } })