From 573f1fb6ea106cd078156b7cb9e82cac2566b67c Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 19 Apr 2012 12:22:04 +0100 Subject: [PATCH] create sessiondata entry if it doesn't exist --- modules/badwords.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/badwords.js b/modules/badwords.js index 48c3325..8d7ab8c 100644 --- a/modules/badwords.js +++ b/modules/badwords.js @@ -35,7 +35,7 @@ var badwords = function(dbot) { return { 'onLoad': function() { - if(dbot.sessionData.hasOwnProperty('badwords')) { + if(!dbot.sessionData.hasOwnProperty('badwords')) { dbot.sessionData.badwords = {}; }