Send username on bot:connect event instead of email

This commit is contained in:
AlexKvazos
2015-04-29 23:29:20 -05:00
parent 5daf6c6691
commit 1e7be7cfd7
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = function(socket) {
socket.emit('bot:connect', {
host: socket.connectionParams.hostname,
port: socket.connectionParams.port,
username: socket.connectionParams.username
username: socket.mcbot.username
});
console.log('logged in > ' + socket.connectionParams.hostname + ':' + socket.connectionParams.port + ' - ' + ' Username: ' + socket.mcbot.username);
});