mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 22:41:52 +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(){
|
||||
var addr = player._client.socket.remoteAddress + ':' + player._client.socket.remotePort;
|
||||
console.log("[INFO]: " + player.username + ' connected', '(' + addr + ')');
|
||||
serv.log("[INFO]: " + player.username + ' connected', '(' + addr + ')');
|
||||
console.log("[INFO]: " + player.username + ' connected');
|
||||
serv.log("[INFO]: " + player.username + ' connected');
|
||||
});
|
||||
|
||||
player.on("spawned",function(){
|
||||
|
|
@ -15,8 +14,8 @@ function inject(serv,player)
|
|||
});
|
||||
|
||||
player.on("disconnected",function(){
|
||||
console.log("[INFO]: " + player.username + ' disconnected'+ '(' + addr + ')');
|
||||
serv.log("[INFO]: " + player.username + ' disconnected'+ '(' + addr + ')');
|
||||
console.log("[INFO]: " + player.username + ' disconnected');
|
||||
serv.log("[INFO]: " + player.username + ' disconnected');
|
||||
});
|
||||
|
||||
player.on("error",function(error){
|
||||
|
|
|
|||
Loading…
Reference in a new issue