diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-29 19:48:02 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-29 19:48:02 +0000 |
commit | 86b714881cf5c32895c8dd1b947cd752ea6698a1 (patch) | |
tree | 7fec97ff806fb8aa0b664fc3fb23cb09634625ee /src/perl/perl-common.h | |
parent | e50535a64e5a09066af9f10a2ac7177726502b1b (diff) | |
download | irssi-86b714881cf5c32895c8dd1b947cd752ea6698a1.zip |
Irssi::print() doesn't call printtext() with args (.., "%s", text)
since it broke %_ etc. formats. But instead of crashing every time
someone prints %s with Irssi::print(), irssi now checks all those
formats and prints them as-is.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1028 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/perl-common.h')
-rw-r--r-- | src/perl/perl-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/perl/perl-common.h b/src/perl/perl-common.h index d8774090..c97a4e38 100644 --- a/src/perl/perl-common.h +++ b/src/perl/perl-common.h @@ -42,6 +42,9 @@ void irssi_add_plains(PLAIN_OBJECT_INIT_REC *objects); char *perl_get_use_list(void); +/* change all %s strings to %%s */ +char *perl_fix_formats(char *str); + void perl_common_init(void); void perl_common_deinit(void); |