summaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-02-16 11:18:16 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-18 13:22:05 +0100
commita70acff952f417ac4f9df750bd59aa4c9cdb01d4 (patch)
tree2a3065861f5002ae5d195236d2cec572d5ea6217 /src/message.c
parentb917bc69384a2e636a717a8730ad5105f7b2bf1a (diff)
downloadcmumble-a70acff952f417ac4f9df750bd59aa4c9cdb01d4.tar.gz
cmumble-a70acff952f417ac4f9df750bd59aa4c9cdb01d4.tar.bz2
cmumble-a70acff952f417ac4f9df750bd59aa4c9cdb01d4.zip
Add verbose option
Disable all debug output using that flag for now.
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index a718f3b..54d9071 100644
--- a/src/message.c
+++ b/src/message.c
@@ -147,7 +147,9 @@ cmumble_recv_msg(struct cmumble *cm)
return 0;
}
- g_print("debug: received message: %s type:%d, len:%d\n", messages[type].name, type, len);
+ if (cm->verbose)
+ g_print("debug: received message: %s type:%d, len:%d\n",
+ messages[type].name, type, len);
if (cm->callbacks[type])
cm->callbacks[type](msg, cm);