From 3c22b811ad076d87febaddd23350fb30f199f006 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 28 Feb 2018 17:42:08 +0000 Subject: [PATCH] clean up the bug with fresh whowas lookup --- modules/kick/kick.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kick/kick.js b/modules/kick/kick.js index 414c256..1269e3f 100644 --- a/modules/kick/kick.js +++ b/modules/kick/kick.js @@ -129,7 +129,7 @@ var kick = function(dbot) { this.hosts[server][unbanee] = manualHost; } - if(_.has(this.hosts, server) && _.has(this.hosts[server], unbanee)) { + if(_.has(this.hosts, server) && _.has(this.hosts[server], unbanee) && _.isString(this.hosts[server][unbanee])) { var host = this.hosts[server][unbanee]; // Notify Staff