headquarters
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -42,6 +42,5 @@ var request = require('request'); | ||
var data = input.split(' '); | ||
var rawData = data; | ||
var name = data.shift(); | ||
if (typeof commands[name] !== 'undefined') commands[name](data); | ||
else if (rawAction) rawAction(rawData); | ||
var name = [0]; | ||
if (typeof commands[name] !== 'undefined') commands[name](data.shift()); | ||
else if (rawAction) rawAction(data); | ||
else console.log(msg.error.noSuchCommand); | ||
@@ -48,0 +47,0 @@ }); |
{ | ||
"name": "headquarters", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Issue commands to your program while it is running.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2596
48