mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Irssi::format_get_text() didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2725 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2321deb9d3
commit
a68d8dd539
@ -11,16 +11,21 @@ format_get_text(window, module, server, target, formatnum, ...)
|
|||||||
char *target
|
char *target
|
||||||
int formatnum
|
int formatnum
|
||||||
PREINIT:
|
PREINIT:
|
||||||
|
TEXT_DEST_REC dest;
|
||||||
|
THEME_REC *theme;
|
||||||
char **charargs;
|
char **charargs;
|
||||||
char *ret;
|
char *ret;
|
||||||
int n;
|
int n;
|
||||||
PPCODE:
|
PPCODE:
|
||||||
charargs = g_new0(char *, items-5+1);
|
charargs = g_new0(char *, items-5+1);
|
||||||
charargs[items-5] = NULL;
|
|
||||||
for (n = 5; n < items; n++) {
|
for (n = 5; n < items; n++) {
|
||||||
charargs[n-5] = (char *)SvPV(ST(n), PL_na);
|
charargs[n-5] = (char *)SvPV(ST(n), PL_na);
|
||||||
}
|
}
|
||||||
ret = format_get_text(module, window, server, target, formatnum, charargs);
|
|
||||||
|
format_create_dest(&dest, server, target, 0, window);
|
||||||
|
theme = window_get_theme(dest.window);
|
||||||
|
|
||||||
|
ret = format_get_text_theme_charargs(theme, module, &dest, formatnum, charargs);
|
||||||
g_free(charargs);
|
g_free(charargs);
|
||||||
|
|
||||||
XPUSHs(sv_2mortal(new_pv(ret)));
|
XPUSHs(sv_2mortal(new_pv(ret)));
|
||||||
|
Loading…
Reference in New Issue
Block a user