From 554a9e995b21d78f5c902f6e9f077161abe313dd Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 20 Apr 2018 21:01:11 +0000 Subject: [PATCH 1/2] do not fail broken regex --- modules/kill_namespam/kill_namespam.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/kill_namespam/kill_namespam.js b/modules/kill_namespam/kill_namespam.js index 635c39b..7bede0a 100644 --- a/modules/kill_namespam/kill_namespam.js +++ b/modules/kill_namespam/kill_namespam.js @@ -16,7 +16,8 @@ var kill_namespam = function(dbot) { // Here we listen for atropos if(event.channel == this.config.cliconn_channel) { if(event.message.match('▶')) { - var matchedPattern = _.find(this.config.cliconn_patterns, function(p) { return event.message.match(p); }) + var matchedPattern = _.find(this.config.cliconn_patterns, + function(p) { try { return event.message.match(p); } catch(e) {}; }); // ok.jpg if(matchedPattern) { var ip = event.message.split(' ')[1] From 6a255244df8463e92ccef467acfce247abcf2226 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 12 May 2018 18:56:14 +0100 Subject: [PATCH 2/2] fix save callback lack (lol) --- run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.js b/run.js index dc8e5cf..29e1a03 100644 --- a/run.js +++ b/run.js @@ -332,7 +332,7 @@ DBot.prototype.reloadModules = function() { }.bind(this)); - this.save(); + this.save(function() {}); }; new DBot();