mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-08 04:30:47 +00:00
fix disconnecting error
This commit is contained in:
parent
920f61340e
commit
11640b8802
1 changed files with 4 additions and 5 deletions
|
|
@ -4,9 +4,8 @@ function inject(serv,player)
|
||||||
{
|
{
|
||||||
|
|
||||||
player.on("connected",function(){
|
player.on("connected",function(){
|
||||||
var addr = player._client.socket.remoteAddress + ':' + player._client.socket.remotePort;
|
console.log("[INFO]: " + player.username + ' connected');
|
||||||
console.log("[INFO]: " + player.username + ' connected', '(' + addr + ')');
|
serv.log("[INFO]: " + player.username + ' connected');
|
||||||
serv.log("[INFO]: " + player.username + ' connected', '(' + addr + ')');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
player.on("spawned",function(){
|
player.on("spawned",function(){
|
||||||
|
|
@ -15,8 +14,8 @@ function inject(serv,player)
|
||||||
});
|
});
|
||||||
|
|
||||||
player.on("disconnected",function(){
|
player.on("disconnected",function(){
|
||||||
console.log("[INFO]: " + player.username + ' disconnected'+ '(' + addr + ')');
|
console.log("[INFO]: " + player.username + ' disconnected');
|
||||||
serv.log("[INFO]: " + player.username + ' disconnected'+ '(' + addr + ')');
|
serv.log("[INFO]: " + player.username + ' disconnected');
|
||||||
});
|
});
|
||||||
|
|
||||||
player.on("error",function(error){
|
player.on("error",function(error){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue