mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
Move output recoding in irc_send_cmd_full.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4715 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a0400dc3d2
commit
0eb386ecd8
8 changed files with 46 additions and 112 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue