missing server clause in send

This commit is contained in:
reality 2013-06-09 16:06:58 +00:00
parent 3e2f96fb11
commit 58786672fd

View File

@ -15,7 +15,7 @@ var nickserv = function(dbot) {
'getUserHost': function(server, nick, callback) { 'getUserHost': function(server, nick, callback) {
if(!_.has(this.userStack, server)) this.userStack[server] = {}; if(!_.has(this.userStack, server)) this.userStack[server] = {};
this.userStack[server][nick] = callback; this.userStack[server][nick] = callback;
dbot.instance.connections.send('USERHOST ' + nick); dbot.instance.connections[server].send('USERHOST ' + nick);
} }
}; };