changeset 298:0119bcc15f15 dev-0_9_1

Another unhandled key warning disabled when debug mode not enabled.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jun 2011 03:56:35 +0300
parents d34910f1b1e1
children ebe6b57bd069
files nnchat.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Sat Jun 11 03:56:01 2011 +0300
+++ b/nnchat.c	Sat Jun 11 03:56:35 2011 +0300
@@ -1734,7 +1734,8 @@
                     nn_editbuf_setpos(editBuf, editBuf->pos + 1);
                     update = TRUE; 
                 } else {
-                    printMsg(currWin, "Unhandled key: 0x%02x\n", c);
+                    if (optDebug)
+                        printMsg(currWin, "Unhandled key: 0x%02x\n", c);
                 }
                 break;
             }