changeset 388:f45673fe6b23

Log private messages always in the PRV format.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 20 May 2012 23:33:46 +0300
parents 25296478a6e6
children 19cb995994c9
files nnchat.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Sun May 20 23:31:33 2012 +0300
+++ b/nnchat.c	Sun May 20 23:33:46 2012 +0300
@@ -650,9 +650,11 @@
             win = findWindow(name);
             
             if (win != NULL) {
-                printMsgF(win, isIgnored ? LOG_FILE : (LOG_WINDOW | LOG_FILE),
+                printMsgF(win, isIgnored ? 0 : LOG_WINDOW,
                     "½5½<½%d½%s½5½>½0½ %s\n",
                     isMine ? 14 : 15, isMine ? optUserName : name, msg);
+
+                printMsgF(NULL, LOG_FILE, "½11½%s½0½\n", h);
             } else {
                 printMsgF(NULL, isIgnored ? LOG_FILE : (LOG_WINDOW | LOG_FILE),
                     "½11½%s½0½\n", h);