From 6156de73b1725ae45da3ce31c93a8952efba387c Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 24 Jan 2013 22:44:41 +0000 Subject: [PATCH] change test_setprop and test_setprop to not have test in them (or underscores) --- modules/profile/commands.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/profile/commands.js b/modules/profile/commands.js index d7088c0..efae49e 100644 --- a/modules/profile/commands.js +++ b/modules/profile/commands.js @@ -1,9 +1,9 @@ var _ = require('underscore')._; var commands = function(dbot){ - var cmds = { + var commands = { - "~test_getprop": function(event){ + "~getprop": function(event){ if(event.params[1]){ var res = dbot.db.profiles[event.server][event.user.toLowerCase()].profile[event.params[1]]; if(res){ @@ -15,7 +15,7 @@ var commands = function(dbot){ } }, - "~test_setprop": function(event){ + "~setprop": function(event){ if(event.input[1] && event.input[2]){ if(_.has(this.config.schema.profile, event.input[1])){ dbot.db.profiles[event.server][event.user.toLowerCase()].profile[event.input[1]] = event.input[2]; @@ -27,9 +27,9 @@ var commands = function(dbot){ } } }; - cmds['~test_setprop'].regex = [/~test_setprop ([^ ]+) (.+)/, 3]; + commands['~setprop'].regex = [/~setprop ([^ ]+) (.+)/, 3]; - return cmds; + return commands; }; exports.fetch = function(dbot){