Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
don't unnecessarily overwrite exclude nicks
Browse files Browse the repository at this point in the history
  • Loading branch information
AKPWebDesign committed Jul 19, 2016
1 parent 91f2bc0 commit 9c10059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ IRCJoinMsg.prototype.setMessage = function (ctx) {
confChan = this._config.channels[`${id}:${chan}`];
}
confChan.msg = msg;
confChan.excludeNicks = [];
confChan.excludeNicks = confChan.excludeNicks || [];
this._AKP48.saveConfig(this._config, 'IRCJoinMsg');
return ctx.reply(`Join message for ${chan} has been set to "${msg}"`);
};
Expand Down

0 comments on commit 9c10059

Please sign in to comment.