mirror of
https://github.com/reality/dbot.git
synced 2025-01-12 13:12:41 +01:00
create sessiondata entry if it doesn't exist
This commit is contained in:
parent
27d5c1aa61
commit
573f1fb6ea
@ -35,7 +35,7 @@ var badwords = function(dbot) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'onLoad': function() {
|
'onLoad': function() {
|
||||||
if(dbot.sessionData.hasOwnProperty('badwords')) {
|
if(!dbot.sessionData.hasOwnProperty('badwords')) {
|
||||||
dbot.sessionData.badwords = {};
|
dbot.sessionData.badwords = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user