<URL: http://bugs.freeciv.org/Ticket/Display.html?id=21794 >
> [kauf - Tue Oct 10 03:07:57 2006]: > > On Sat, Oct 07, 2006 at 05:50:58PM -0700, book wrote: > > > > <URL: http://bugs.freeciv.org/Ticket/Display.html?id=21794 > > > > > A must for any server admin. > > > > Changes: > > - All chat messages (public, private, ally) are printed in the > > server console. > > no. this is not going in to the main tree. private chat > communications have some expectation of privacy. Fair enough. I changed the patch to only echo public messages. This way the users can at least communicate to the server console in case of problems (which is the point of this ticket). ----------------------------------------------------------------------- 誤字かもしれない。
diff --git a/server/handchat.c b/server/handchat.c index 843d753..f38a074 100644 --- a/server/handchat.c +++ b/server/handchat.c @@ -26,6 +26,7 @@ #include "shared.h" #include "support.h" +#include "console.h" #include "stdinhand.h" #include "handchat.h" @@ -312,6 +313,7 @@ void handle_chat_msg_req(struct connection *pconn, char *message) form_chat_name(pconn, sender_name, sizeof(sender_name)); my_snprintf(chat, sizeof(chat), "<%s> %s", sender_name, message); + con_puts(C_COMMENT, chat); dlsend_packet_chat_msg(game.est_connections, chat, -1, -1, E_CHAT_MSG, pconn->id); }
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev