Mercurial > hg > nnchat
changeset 40:3e2548c3eb51
Fix PRV handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 26 Oct 2008 02:50:41 +0300 |
parents | bb25bdfc0d71 |
children | fe3140cec818 |
files | nnchat.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Thu Oct 23 02:13:39 2008 +0300 +++ b/nnchat.c Sun Oct 26 02:50:41 2008 +0300 @@ -760,14 +760,13 @@ if (*s == '/') { - if (!strncmp(s, "/BPRV", 5)) { - t = stripTags(s + 2); + t = stripTags(s + 1); + if (!strncmp(t, "BPRV", 4)) { + h = decodeStr2(t + 1); + printMsg("½11½%s½0½\n", h); + } else { h = decodeStr2(t); - printMsg("%s\n", h); - } else { - t = stripTags(s + 1); - h = decodeStr2(t); - printMsg("* %s\n", h); + printMsg("½9½* %s½0½\n", h); } th_free(h); th_free(t);