|
|
@ -42,8 +42,8 @@ Data.setMetadata = function (Env, safeKey, data, cb, Server) {
|
|
|
|
var channel = data.channel;
|
|
|
|
var channel = data.channel;
|
|
|
|
var command = data.command;
|
|
|
|
var command = data.command;
|
|
|
|
if (!channel || !Core.isValidId(channel)) { return void cb ('INVALID_CHAN'); }
|
|
|
|
if (!channel || !Core.isValidId(channel)) { return void cb ('INVALID_CHAN'); }
|
|
|
|
if (!command || typeof (command) !== 'string') { return void cb ('INVALID_COMMAND'); }
|
|
|
|
if (!command || typeof (command) !== 'string') { return void cb('INVALID_COMMAND'); }
|
|
|
|
if (Meta.commands.indexOf(command) === -1) { return void('UNSUPPORTED_COMMAND'); }
|
|
|
|
if (Meta.commands.indexOf(command) === -1) { return void cb('UNSUPPORTED_COMMAND'); }
|
|
|
|
|
|
|
|
|
|
|
|
queueMetadata(channel, function (next) {
|
|
|
|
queueMetadata(channel, function (next) {
|
|
|
|
Data.getMetadata(Env, channel, function (err, metadata) {
|
|
|
|
Data.getMetadata(Env, channel, function (err, metadata) {
|
|
|
|