summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-27 20:21:56 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-27 20:21:56 +0000
commit8028f969febdbf68101d5a4b00f989f50b34a349 (patch)
tree576dabe90f777d1a5884ea062a87ab30f6577583 /src/fe-text
parenta843057fed172a319f56fec2d351a90723057a99 (diff)
downloadirssi-8028f969febdbf68101d5a4b00f989f50b34a349.zip
didn't work properly with scripts calling Irssi::printformat()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2157 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/textbuffer-reformat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/textbuffer-reformat.c b/src/fe-text/textbuffer-reformat.c
index d719c468..9bccbc5a 100644
--- a/src/fe-text/textbuffer-reformat.c
+++ b/src/fe-text/textbuffer-reformat.c
@@ -228,7 +228,8 @@ static void sig_print_format(THEME_REC *theme, const char *module,
g_string_append_c(format, '\0');
g_string_append_c(format, (char)LINE_CMD_FORMAT);
- g_string_append(format, args[n]);
+ if (args[n] != NULL)
+ g_string_append(format, args[n]);
}
}