diff options
author | Valentin Batz <senneth@irssi.org> | 2005-10-12 18:22:14 +0000 |
---|---|---|
committer | vb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-10-12 18:22:14 +0000 |
commit | d8d47ef37f6efb290472ae587cefa3df22bd92dc (patch) | |
tree | 45034eb5bb688d2d32f64134db54a44373416be0 /src/fe-common/irc/fe-irc-messages.c | |
parent | fd476e8b319dc7a1d4271ec339df9deb752dc055 (diff) | |
download | irssi-d8d47ef37f6efb290472ae587cefa3df22bd92dc.zip |
fixed recoding of own messages.
recode after expand_emphasis
remove the redundant call to setlocale(LC_CTYPE, )
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4038 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-irc-messages.c')
-rw-r--r-- | src/fe-common/irc/fe-irc-messages.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fe-common/irc/fe-irc-messages.c b/src/fe-common/irc/fe-irc-messages.c index 253975da..6e14e8e5 100644 --- a/src/fe-common/irc/fe-irc-messages.c +++ b/src/fe-common/irc/fe-irc-messages.c @@ -111,7 +111,7 @@ static void sig_message_own_wall(SERVER_REC *server, const char *msg, MSGLEVEL_PUBLIC | MSGLEVEL_NOHILIGHT | MSGLEVEL_NO_ACT, TXT_OWN_MSG_CHANNEL, - server->nick, optarget, msg, nickmode); + server->nick, optarget, recoded, nickmode); g_free(recoded); g_free(optarget); } @@ -127,16 +127,17 @@ static void sig_message_own_action(IRC_SERVER_REC *server, const char *msg, else item = irc_query_find(server, target); + if (settings_get_bool("emphasis")) + msg = freemsg = expand_emphasis(item, msg); + /* ugly: recode the sent message back for printing */ recoded = recode_in(SERVER(server), msg, target); - if (settings_get_bool("emphasis")) - msg = freemsg = expand_emphasis(item, recoded); printformat(server, target, MSGLEVEL_ACTIONS | MSGLEVEL_NOHILIGHT | MSGLEVEL_NO_ACT | (ischannel(*target) ? MSGLEVEL_PUBLIC : MSGLEVEL_MSGS), item != NULL ? IRCTXT_OWN_ACTION : IRCTXT_OWN_ACTION_TARGET, - server->nick, msg, target); + server->nick, recoded, target); g_free(recoded); g_free_not_null(freemsg); } |