mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
special vars: added PARSE_FLAG_ONLY_PARAMS. Theme loading now uses it so
you can use $C etc. in themes to print the active channel. printformat() also expands it now correctly to the server/target where the message was printed, not to the active window's server/target. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1802 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8104317897
commit
7814192f03
4 changed files with 16 additions and 9 deletions
|
|
@ -202,6 +202,11 @@ static char *get_special_value(char **cmd, SERVER_REC *server, void *item,
|
|||
char command, *value, *p;
|
||||
int len;
|
||||
|
||||
if ((flags & PARSE_FLAG_ONLY_PARAMS) && !isdigit(**cmd)) {
|
||||
*free_ret = TRUE;
|
||||
return g_strdup_printf("$%c", **cmd);
|
||||
}
|
||||
|
||||
if (**cmd == '!') {
|
||||
/* find text from command history */
|
||||
if (flags & PARSE_FLAG_GETNAME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue