comparison 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
comparison
equal deleted inserted replaced
654:d7fe7b88e4fc 655:de6837908702
1385 if (msg) { 1385 if (msg) {
1386 char *msg_noutf8 = from_utf8(msg); 1386 char *msg_noutf8 = from_utf8(msg);
1387 if (msg_noutf8) { 1387 if (msg_noutf8) {
1388 buf = g_strdup_printf("<%s> said: %s", from, msg_noutf8); 1388 buf = g_strdup_printf("<%s> said: %s", from, msg_noutf8);
1389 scr_WriteIncomingMessage(r, buf, 0, HBB_PREFIX_INFO); 1389 scr_WriteIncomingMessage(r, buf, 0, HBB_PREFIX_INFO);
1390 msg = strchr(buf, '\n'); 1390 replace_nl_with_dots(buf);
1391 if (msg) *msg = 0;
1392 scr_LogPrint(LPRINT_LOGNORM, buf); 1391 scr_LogPrint(LPRINT_LOGNORM, buf);
1393 g_free(buf); 1392 g_free(buf);
1394 g_free(msg_noutf8); 1393 g_free(msg_noutf8);
1395 } 1394 }
1396 } 1395 }