3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

create sessiondata entry if it doesn't exist

This commit is contained in:
Luke Slater 2012-04-19 12:22:04 +01:00
parent 27d5c1aa61
commit 573f1fb6ea

View File

@ -35,7 +35,7 @@ var badwords = function(dbot) {
return {
'onLoad': function() {
if(dbot.sessionData.hasOwnProperty('badwords')) {
if(!dbot.sessionData.hasOwnProperty('badwords')) {
dbot.sessionData.badwords = {};
}