From 0c2a9f22a44f8f8a8253b69b4a5d21c1afc072b1 Mon Sep 17 00:00:00 2001 From: Semisol Date: Sat, 4 Sep 2021 15:14:34 +0300 Subject: [PATCH] log quits --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 441410c..699f851 100644 --- a/index.js +++ b/index.js @@ -235,6 +235,10 @@ bot.on("part", (evt)=>{ if (evt.nick === conf.user.nick) return logS(`${evt.nick}!${evt.ident}@${evt.hostname}${evt.gecos?`#${evt.gecos}`:""} (${evt.tags["unrealircd.org/userip"] || "???"}) parts`) }) +bot.on("quit", (evt)=>{ + if (evt.nick === conf.user.nick) return + logS(`${evt.nick}!${evt.ident}@${evt.hostname}${evt.gecos?`#${evt.gecos}`:""} (${evt.tags["unrealircd.org/userip"] || "???"}) quits`) +}) bot.on("kick", (e) => { if (e.kicked === conf.user.nick && e.channel === conf.channel) { bot.join(conf.channel);