From ada0d56b1962511369ea15748e4489cecb334a72 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 18 Oct 2011 16:52:33 +0100 Subject: [PATCH] save on admin commands --- modules/admin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'