[CF-Devel] CVS update: crossfire/server
Crossfire CVS devel
mwedel at scruznet.com
Tue Aug 8 01:57:57 CDT 2000
Date: Monday August 7, 2000 @ 23:57
Author: cvs
Update of /home/cvs/CVS/crossfire/server
In directory boltzmann.eecs.berkeley.edu:/tmp/cvs-serv11058/server
Modified Files:
login.c main.c
Log Message:
Add/Remove some LOG calls:
common/living.c: Remove log messages about gen_sp values on armor
server/login.c, server/main.c: Add messages about player logins/logouts with
IP address. Useful for tracking potentially troublesome players and where
they are player from. MSW 8/7/2000
****************************************
Index: crossfire/server/login.c
diff -u crossfire/server/login.c:1.8 crossfire/server/login.c:1.9
--- crossfire/server/login.c:1.8 Tue Jun 27 21:23:09 2000
+++ crossfire/server/login.c Mon Aug 7 23:57:57 2000
@@ -1,6 +1,6 @@
/*
* static char *rcsid_login_c =
- * "$Id: login.c,v 1.8 2000/06/28 04:23:09 cvs Exp $";
+ * "$Id: login.c,v 1.9 2000/08/08 06:57:57 cvs Exp $";
*/
/*
@@ -753,6 +753,8 @@
kill_player(op);
if (pl->state != ST_PLAYING) return;
}
+ LOG(llevInfo,"LOGIN: Player named %s from ip %s\n", op->name,
+ op->contr->socket.host);
/* Do this after checking for death - no reason sucking up bandwidth if
* the data isn't needed.
Index: crossfire/server/main.c
diff -u crossfire/server/main.c:1.11 crossfire/server/main.c:1.12
--- crossfire/server/main.c:1.11 Sat Jun 17 14:56:45 2000
+++ crossfire/server/main.c Mon Aug 7 23:57:57 2000
@@ -1,6 +1,6 @@
/*
* static char *rcsid_main_c =
- * "$Id: main.c,v 1.11 2000/06/17 21:56:45 cvs Exp $";
+ * "$Id: main.c,v 1.12 2000/08/08 06:57:57 cvs Exp $";
*/
/*
@@ -788,6 +788,8 @@
* of the data.
*/
pl->socket.status=Ns_Dead;
+ LOG(llevInfo,"LOGOUT: Player named %s from ip %s\n", pl->ob->name,
+ pl->socket.host);
(void) sprintf(buf,"%s left the game.",pl->ob->name);
if (pl->ob->map) {
More information about the crossfire
mailing list