minor fixes
add deposit command in addition to address
This commit is contained in:
parent
96d02fe5a8
commit
65e2c4fc77
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,7 @@ client.stream('statuses/filter', {track: settings.twitter.twitterkeyword}, funct
|
||||||
if (balance >= amount) {
|
if (balance >= amount) {
|
||||||
coin.send('move', settings.rpc.prefix + from.toLowerCase(), settings.rpc.prefix + to.toLowerCase(), amount, function (err, reply) {
|
coin.send('move', settings.rpc.prefix + from.toLowerCase(), settings.rpc.prefix + to.toLowerCase(), amount, function (err, reply) {
|
||||||
locks[from.toLowerCase()] = null;
|
locks[from.toLowerCase()] = null;
|
||||||
if (err || reply) {
|
if (err || !reply) {
|
||||||
winston.error('Error in tip command', err);
|
winston.error('Error in tip command', err);
|
||||||
replytweet(from, replyid, settings.messages.error.expand({name: from}));
|
replytweet(from, replyid, settings.messages.error.expand({name: from}));
|
||||||
return;
|
return;
|
||||||
|
@ -208,6 +208,7 @@ client.stream('statuses/filter', {track: settings.twitter.twitterkeyword}, funct
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'deposit':
|
||||||
case 'address':
|
case 'address':
|
||||||
console.log('adress');
|
console.log('adress');
|
||||||
var user = from.toLowerCase();
|
var user = from.toLowerCase();
|
||||||
|
|
Loading…
Reference in a new issue