From b90cca7a12f7017fdcb18ed1ef562fd777bb1038 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sat, 2 Oct 2021 12:32:56 +0300 Subject: [PATCH] remove config save, its unnecessary --- irc/plugin.json | 2 +- irc/plugin.ts | 5 ++--- squeebot.repo.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/irc/plugin.json b/irc/plugin.json index 38f6531..281f738 100644 --- a/irc/plugin.json +++ b/irc/plugin.json @@ -3,7 +3,7 @@ "name": "irc", "description": "IRC Service for Squeebot 3", "tags": ["service", "irc"], - "version": "1.1.2", + "version": "1.1.3", "dependencies": ["control?"], "npmDependencies": [] } diff --git a/irc/plugin.ts b/irc/plugin.ts index a330174..88879dc 100644 --- a/irc/plugin.ts +++ b/irc/plugin.ts @@ -313,9 +313,8 @@ class IRCServicePlugin extends Plugin { unloadEventHandler(plugin: string | Plugin): void { if (plugin === this.name || plugin === this) { logger.debug('[%s]', this.name, 'shutting down..'); - this.config.save().then(() => - this.service!.stopAll().then(() => - this.emit('pluginUnloaded', this))); + this.service!.stopAll().then(() => + this.emit('pluginUnloaded', this)); } } } diff --git a/squeebot.repo.json b/squeebot.repo.json index f528061..c09b3c5 100644 --- a/squeebot.repo.json +++ b/squeebot.repo.json @@ -3,7 +3,7 @@ "plugins": [ { "name": "irc", - "version": "1.1.2" + "version": "1.1.3" }, { "name": "ircprototest",