Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 1122:648fe6f715a6
Filter out ^M (0x0d) characters in incoming messages
This fixes a bug with some centericq versions, reported by Frank Zschockelt.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 13 Jan 2007 14:27:54 +0100 |
parents | 922a9ae1a17e |
children | fddf2fef7b83 |
comparison
equal
deleted
inserted
replaced
1121:1aeba5c19834 | 1122:648fe6f715a6 |
---|---|
1351 { | 1351 { |
1352 char *xtext; | 1352 char *xtext; |
1353 | 1353 |
1354 if (!timestamp) timestamp = time(NULL); | 1354 if (!timestamp) timestamp = time(NULL); |
1355 | 1355 |
1356 xtext = ut_expand_tabs(text); // Expand tabs | 1356 xtext = ut_expand_tabs(text); // Expand tabs and filter out some chars |
1357 | |
1358 // XXX Are there other special chars we should filter out? | |
1359 | 1357 |
1360 scr_WriteInWindow(bjid, xtext, timestamp, prefix_flags, FALSE); | 1358 scr_WriteInWindow(bjid, xtext, timestamp, prefix_flags, FALSE); |
1361 | 1359 |
1362 if (xtext != (char*)text) | 1360 if (xtext != (char*)text) |
1363 g_free(xtext); | 1361 g_free(xtext); |