diff --git a/modules/admin.js b/modules/admin.js index ee70071..01f1603 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -83,8 +83,10 @@ var adminCommands = function(dbot) { 'listener': function(data) { params = data.message.split(' '); - if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin) + if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin) { commands[params[0]](data, params); + dbot.save(); + } }, 'on': 'PRIVMSG'