diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-28 17:04:33 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-28 17:04:33 +0000 |
commit | db5e7f37310b5a76a66e72598d4f36247fafcfd0 (patch) | |
tree | 8408a6eb102af37c790165dd916109c0d314e1ef /src/fe-common/irc/dcc | |
parent | 08b95db0dfb28ea9c89272252faec8c9caf65398 (diff) | |
download | irssi-db5e7f37310b5a76a66e72598d4f36247fafcfd0.zip |
emphasis moved to fe-messages. added a few checks so that non-words
aren't treated as emphasis
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1022 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/dcc')
-rw-r--r-- | src/fe-common/irc/dcc/fe-dcc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc.c b/src/fe-common/irc/dcc/fe-dcc.c index bab98124..0bdfd909 100644 --- a/src/fe-common/irc/dcc/fe-dcc.c +++ b/src/fe-common/irc/dcc/fe-dcc.c @@ -37,6 +37,7 @@ #include "module-formats.h" #include "printtext.h" +#include "fe-messages.h" static int autocreate_dccquery; @@ -142,16 +143,22 @@ static void dcc_chat_ctcp(const char *msg, DCC_REC *dcc) static void dcc_chat_msg(DCC_REC *dcc, const char *msg) { - char *sender; + char *sender, *freemsg; g_return_if_fail(dcc != NULL); g_return_if_fail(msg != NULL); + if (settings_get_bool("emphasis")) + msg = freemsg = expand_emphasis(msg); + else + freemsg = NULL; + sender = g_strconcat("=", dcc->nick, NULL); printformat(NULL, sender, MSGLEVEL_DCCMSGS, query_find(NULL, sender) ? IRCTXT_DCC_MSG_QUERY : IRCTXT_DCC_MSG, dcc->nick, msg); g_free(sender); + g_free_not_null(freemsg); } static void dcc_request(DCC_REC *dcc) |