From 0edaf64bc72db78de36392543fcd134ff4e3b7a8 Mon Sep 17 00:00:00 2001 From: Rajesh Gauswami Date: Tue, 7 Jun 2022 16:45:59 +0530 Subject: [PATCH] emit added for DELE and RMD command --- src/commands/registration/dele.js | 1 + src/commands/registration/rmd.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/commands/registration/dele.js b/src/commands/registration/dele.js index f8ef36cf..e31e52b6 100644 --- a/src/commands/registration/dele.js +++ b/src/commands/registration/dele.js @@ -8,6 +8,7 @@ module.exports = { return Promise.try(() => this.fs.delete(command.arg)) .then(() => { + this.emit('DELE', command.arg) return this.reply(250); }) .catch((err) => { diff --git a/src/commands/registration/rmd.js b/src/commands/registration/rmd.js index 8b4931ca..98baf393 100644 --- a/src/commands/registration/rmd.js +++ b/src/commands/registration/rmd.js @@ -3,6 +3,7 @@ const {handler: dele} = require('./dele'); module.exports = { directive: ['RMD', 'XRMD'], handler: function (args) { + this.emit('RMD', args) return dele.call(this, args); }, syntax: '{{cmd}} ',