mirror of
https://github.com/reality/dbot.git
synced 2026-02-26 13:28:03 +01:00
create sessiondata entry if it doesn't exist
This commit is contained in:
parent
dc454ed659
commit
1b08f1d163
@ -35,7 +35,7 @@ var badwords = function(dbot) {
|
||||
|
||||
return {
|
||||
'onLoad': function() {
|
||||
if(dbot.sessionData.hasOwnProperty('badwords')) {
|
||||
if(!dbot.sessionData.hasOwnProperty('badwords')) {
|
||||
dbot.sessionData.badwords = {};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user