mirror of
https://github.com/jwinterm/node-tip-bot.git
synced 2026-10-17 05:41:42 +02:00
add prefix to account name when requesting deposit address
This commit is contained in:
+1
-2
@@ -113,10 +113,9 @@ irc.Client.prototype.getNames = function(channel, callback) {
|
||||
this.addListener('names' + channel, listener);
|
||||
}
|
||||
|
||||
// gets a empty coin address
|
||||
irc.Client.prototype.getAddress = function(nickname, callback) {
|
||||
winston.debug('Requesting address for %s', nickname);
|
||||
coin.send('getaccountaddress', nickname.toLowerCase(), function(err, address) {
|
||||
coin.send('getaccountaddress', settings.rpc.prefix + nickname.toLowerCase(), function(err, address) {
|
||||
if(err) {
|
||||
winston.error('Something went wrong while getting address. ' + err);
|
||||
callback(err);
|
||||
|
||||
Reference in New Issue
Block a user