mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
add "print format" signal to perl
fix syntax in signals.txt with regards to GLists simplify signal emit code
This commit is contained in:
parent
784373a7b3
commit
4330dbec62
8 changed files with 229 additions and 176 deletions
|
|
@ -570,10 +570,10 @@ static void sig_print_format(THEME_REC *theme, const char *module,
|
|||
|
||||
str = format_get_text_theme_charargs(log_theme, module, dest,
|
||||
GPOINTER_TO_INT(formatnum), args);
|
||||
skip_next_printtext = TRUE;
|
||||
if (str != NULL && *str != '\0') {
|
||||
skip_next_printtext = TRUE;
|
||||
|
||||
if (*str != '\0') {
|
||||
/* add the line start format */
|
||||
/* add the line start format */
|
||||
linestart = format_get_level_tag(log_theme, dest);
|
||||
tmp = str;
|
||||
str = format_add_linestart(tmp, linestart);
|
||||
|
|
|
|||
|
|
@ -650,6 +650,9 @@ char *format_get_text_theme_charargs(THEME_REC *theme, const char *module,
|
|||
MODULE_THEME_REC *module_theme;
|
||||
char *text;
|
||||
|
||||
if (module == NULL)
|
||||
return NULL;
|
||||
|
||||
module_theme = g_hash_table_lookup(theme->modules, module);
|
||||
if (module_theme == NULL)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue