diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-02-16 23:28:53 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-02-16 23:28:53 +0000 |
commit | 0eb386ecd88140863c6377ef18764844103b68d9 (patch) | |
tree | ca109e2b94b304495408e6bacdbe189ec3289f9f /src/irc/core/channel-events.c | |
parent | a0400dc3d23c01655b15a4486f8bd5b3c97b75cc (diff) | |
download | irssi-0eb386ecd88140863c6377ef18764844103b68d9.zip |
Move output recoding in irc_send_cmd_full.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4715 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/channel-events.c')
-rw-r--r-- | src/irc/core/channel-events.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index 441849b8..8ee469a4 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -23,7 +23,6 @@ #include "misc.h" #include "channels-setup.h" #include "settings.h" -#include "recode.h" #include "irc-servers.h" #include "irc-channels.h" @@ -122,18 +121,13 @@ static void channel_change_topic(IRC_SERVER_REC *server, const char *channel, time_t settime) { CHANNEL_REC *chanrec; - char *recoded = NULL; chanrec = channel_find(SERVER(server), channel); if (chanrec == NULL) return; - /* the topic may be send out encoded, so we need to - recode it back or /topic <tab> will not work properly */ - recoded = recode_in(SERVER(server), topic, channel); if (topic != NULL) { g_free_not_null(chanrec->topic); - chanrec->topic = recoded == NULL ? NULL : g_strdup(recoded); + chanrec->topic = g_strdup(topic); } - g_free(recoded); g_free_not_null(chanrec->topic_by); chanrec->topic_by = g_strdup(setby); |