mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
/SET prompt, /SET prompt_window - Specifies the text in prompt.
'prompt' is used when channel or query is active in window and 'prompt_window' is used with empty windows. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1005 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
aac80846b8
commit
bbc33bff5e
17 changed files with 291 additions and 71 deletions
|
|
@ -29,13 +29,23 @@ static char *expando_winref(SERVER_REC *server, void *item, int *free_ret)
|
|||
return g_strdup_printf("%d", active_win->refnum);
|
||||
}
|
||||
|
||||
/* Window name */
|
||||
static char *expando_winname(SERVER_REC *server, void *item, int *free_ret)
|
||||
{
|
||||
return active_win->name;
|
||||
}
|
||||
|
||||
void fe_expandos_init(void)
|
||||
{
|
||||
expando_create("winref", expando_winref,
|
||||
"window changed", EXPANDO_ARG_NONE, NULL);
|
||||
"window changed", EXPANDO_ARG_NONE,
|
||||
"window refnum changed", EXPANDO_ARG_WINDOW, NULL);
|
||||
expando_create("winname", expando_winname,
|
||||
"window name changed", EXPANDO_ARG_WINDOW, NULL);
|
||||
}
|
||||
|
||||
void fe_expandos_deinit(void)
|
||||
{
|
||||
expando_destroy("winref", expando_winref);
|
||||
expando_destroy("winname", expando_winname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -350,7 +350,8 @@ static void autolog_open(void *server, const char *target)
|
|||
return;
|
||||
}
|
||||
|
||||
fname = parse_special_string(autolog_path, server, NULL, target, NULL);
|
||||
fname = parse_special_string(autolog_path, server, NULL,
|
||||
target, NULL, 0);
|
||||
if (log_find(fname) == NULL) {
|
||||
log = log_create_rec(fname, autolog_level);
|
||||
log_item_add(log, LOG_ITEM_TARGET, target, server);
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ static void cmd_msg(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
|||
if (strcmp(target, ",") == 0 || strcmp(target, ".") == 0) {
|
||||
/* , and . are handled specially */
|
||||
newtarget = parse_special(&target, server, item,
|
||||
NULL, &free_ret, NULL);
|
||||
NULL, &free_ret, NULL, 0);
|
||||
if (newtarget == NULL) {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
|
||||
*target == ',' ? IRCTXT_NO_MSGS_GOT :
|
||||
|
|
|
|||
|
|
@ -237,8 +237,10 @@ static char *format_get_text_args(TEXT_DEST_REC *dest,
|
|||
/* argument */
|
||||
char *ret;
|
||||
|
||||
ret = parse_special((char **) &text, active_win->active_server,
|
||||
active_win->active, arglist, &need_free, NULL);
|
||||
ret = parse_special((char **) &text,
|
||||
active_win->active_server,
|
||||
active_win->active, arglist,
|
||||
&need_free, NULL, 0);
|
||||
|
||||
if (ret != NULL) {
|
||||
/* string shouldn't end with \003 or it could
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ static char *theme_replace_expand(THEME_REC *theme, int index,
|
|||
abstract = rec->data;
|
||||
abstract = theme_format_expand_data(theme, (const char **) &abstract,
|
||||
default_color, last_color, 0);
|
||||
ret = parse_special_string(abstract, NULL, NULL, data, NULL);
|
||||
ret = parse_special_string(abstract, NULL, NULL, data, NULL, 0);
|
||||
g_free(abstract);
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -158,7 +158,7 @@ static void theme_format_append_variable(GString *str, const char **format)
|
|||
(*format)++;
|
||||
|
||||
value = parse_special((char **) format, NULL, NULL,
|
||||
args, &free_ret, NULL );
|
||||
args, &free_ret, NULL, 0);
|
||||
if (free_ret) g_free(value);
|
||||
(*format)++;
|
||||
|
||||
|
|
@ -290,7 +290,7 @@ static char *theme_format_expand_abstract(THEME_REC *theme,
|
|||
g_free(tmp);
|
||||
}
|
||||
|
||||
ret = parse_special_string(abstract, NULL, NULL, data, NULL);
|
||||
ret = parse_special_string(abstract, NULL, NULL, data, NULL, 0);
|
||||
g_free(abstract);
|
||||
g_free(data);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue