Mercurial > hg > nnchat
changeset 418:8ca09a6cca09
Minor cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 24 May 2012 07:34:37 +0300 |
parents | ccee77fe4525 |
children | d015ecbd231d |
files | main.c |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Thu May 24 07:27:28 2012 +0300 +++ b/main.c Thu May 24 07:34:37 2012 +0300 @@ -687,16 +687,11 @@ nn_window_t *win; h = nn_decode_str2(t + 1); - if (!strncmp(t, "BPRV from ", 10)) - { + // Check type of + if ((isMine = strncmp(t, "BPRV from ", 10)) == 0) in_name = nn_decode_str2(t + 10); - isMine = FALSE; - } else - { in_name = nn_decode_str2(t + 8); - isMine = TRUE; - } for (tmp = in_name; *tmp && *tmp != ':'; tmp++); if (tmp[0] != 0 && tmp[1] == ' ')