mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
printformat_perl() crashfix was buggy :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2151 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e6f006009f
commit
e246ca668b
@ -6,16 +6,16 @@ void printformat_perl(TEXT_DEST_REC *dest, char *format, char **arglist)
|
||||
char *module, *str;
|
||||
int formatnum;
|
||||
|
||||
module = g_strdup(perl_get_package());
|
||||
formatnum = format_find_tag(module, format);
|
||||
if (formatnum < 0) {
|
||||
die("printformat(): unregistered format '%s'", format);
|
||||
g_free(module);
|
||||
return;
|
||||
}
|
||||
|
||||
module = g_strdup(perl_get_package());
|
||||
theme = dest->window->theme == NULL ? current_theme :
|
||||
dest->window->theme;
|
||||
|
||||
signal_emit("print format", 5, theme, module,
|
||||
&dest, GINT_TO_POINTER(formatnum), arglist);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user