3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

save on admin commands

This commit is contained in:
Luke Slater 2011-10-18 16:52:33 +01:00
parent 14db0b6eb6
commit ada0d56b19

View File

@ -83,8 +83,10 @@ var adminCommands = function(dbot) {
'listener': function(data) { 'listener': function(data) {
params = data.message.split(' '); 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); commands[params[0]](data, params);
dbot.save();
}
}, },
'on': 'PRIVMSG' 'on': 'PRIVMSG'