diff --git a/src/commands/registration/dele.js b/src/commands/registration/dele.js index f8ef36c..e31e52b 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 8b4931c..98baf39 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}} ',