commit e97a5ad3b816920ffa056bef441c34752df119a9 parent 9a2f58d396f5ba46364e89e2fe5cbd346e1a7313 Author: Sana <36829952+cognitive137@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:36:44 +0530 Update irc.js Updated the pm function. Diffstat:
M | irc.js | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/irc.js b/irc.js @@ -34,6 +34,9 @@ function pm(sender, msg) { admins.forEach(admin => client.say(admin, `Message from ${sender}: ${msg}`) ); + if(msg != 'KILL') return; + if(['pizero', 'pizero|afk', 'acagastya'].indexOf(from) < 0) return; + process.abort(); } function err(msg) {