diff options
author | dequis <dx@dxzone.com.ar> | 2015-03-08 01:28:28 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-04-10 14:10:40 -0300 |
commit | 693aca0fc7edd7e9babe4de8e399d44fa273660a (patch) | |
tree | 826a08515cbff68b85c5c410b2415d618d77a98c /protocols/msn/msn_util.c | |
parent | a9b1e0edf0280371772e346ee96d24f732bef59f (diff) |
msn: colorful debug
Diffstat (limited to 'protocols/msn/msn_util.c')
-rw-r--r-- | protocols/msn/msn_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/msn/msn_util.c b/protocols/msn/msn_util.c index 5164a8d2..e4c7aa61 100644 --- a/protocols/msn/msn_util.c +++ b/protocols/msn/msn_util.c @@ -274,12 +274,14 @@ int msn_handler(struct msn_handler_data *h) h->rxlen += st; if (st <= 0) { + fprintf(stderr, "\n\x1b[92m<<< [closed]\x1b[97m "); return(-1); } if (getenv("BITLBEE_DEBUG")) { - write(2, "->C:", 4); + fprintf(stderr, "\n\x1b[92m<<< "); write(2, h->rxq + h->rxlen - st, st); + fprintf(stderr, "\x1b[97m"); } while (st) { |