Mercurial > hg > nnchat
comparison nnchat.c @ 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 | bbd5edbf1143 |
children | 19cb995994c9 |
comparison
equal
deleted
inserted
replaced
387:25296478a6e6 | 388:f45673fe6b23 |
---|---|
648 | 648 |
649 isIgnored = setIgnoreMode && checkIgnoreList(name); | 649 isIgnored = setIgnoreMode && checkIgnoreList(name); |
650 win = findWindow(name); | 650 win = findWindow(name); |
651 | 651 |
652 if (win != NULL) { | 652 if (win != NULL) { |
653 printMsgF(win, isIgnored ? LOG_FILE : (LOG_WINDOW | LOG_FILE), | 653 printMsgF(win, isIgnored ? 0 : LOG_WINDOW, |
654 "½5½<½%d½%s½5½>½0½ %s\n", | 654 "½5½<½%d½%s½5½>½0½ %s\n", |
655 isMine ? 14 : 15, isMine ? optUserName : name, msg); | 655 isMine ? 14 : 15, isMine ? optUserName : name, msg); |
656 | |
657 printMsgF(NULL, LOG_FILE, "½11½%s½0½\n", h); | |
656 } else { | 658 } else { |
657 printMsgF(NULL, isIgnored ? LOG_FILE : (LOG_WINDOW | LOG_FILE), | 659 printMsgF(NULL, isIgnored ? LOG_FILE : (LOG_WINDOW | LOG_FILE), |
658 "½11½%s½0½\n", h); | 660 "½11½%s½0½\n", h); |
659 } | 661 } |
660 th_free(name); | 662 th_free(name); |