Mercurial > ~mikael > mcabber > hg
diff mcabber/src/jabglue.c @ 655:de6837908702
Use "(...)" when cutting a multi-line status message in the log window
Thanks to Salvador for suggesting...
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 07 Jan 2006 13:59:17 +0100 |
parents | d7fe7b88e4fc |
children | d0928694c81b |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Sat Jan 07 12:17:49 2006 +0100 +++ b/mcabber/src/jabglue.c Sat Jan 07 13:59:17 2006 +0100 @@ -1387,8 +1387,7 @@ if (msg_noutf8) { buf = g_strdup_printf("<%s> said: %s", from, msg_noutf8); scr_WriteIncomingMessage(r, buf, 0, HBB_PREFIX_INFO); - msg = strchr(buf, '\n'); - if (msg) *msg = 0; + replace_nl_with_dots(buf); scr_LogPrint(LPRINT_LOGNORM, buf); g_free(buf); g_free(msg_noutf8);