mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Better !channel support - window items now have "visual_name" and channels
and queries also have "name". Normally they're identical but with !channels
the visible_name contains the short !channel name, while name contains
full !ABCDEchannel name.
The visible_name should be used whenever displaying the channel name, or as
printtext()'s target. So, this breaks a few scripts in !channels, they need
to be modified to use $channel->{visible_name} instead.
Also /LAYOUT SAVE should finally work properly with !channels.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2797 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ee80e7601a
commit
d346fbe1a9
44 changed files with 325 additions and 247 deletions
|
|
@ -64,7 +64,8 @@ static void window_print_items(WINDOW_REC *win)
|
|||
type = module_find_id_str("WINDOW ITEM TYPE", item->type);
|
||||
printformat_window(win, MSGLEVEL_CLIENTCRAP,
|
||||
TXT_WINDOW_INFO_ITEM,
|
||||
type == NULL ? "??" : type, item->name,
|
||||
type == NULL ? "??" : type,
|
||||
item->visible_name,
|
||||
item->server == NULL ? "" :
|
||||
item->server->tag);
|
||||
}
|
||||
|
|
@ -660,7 +661,7 @@ static void cmd_window_list(void)
|
|||
levelstr = bits2level(rec->level);
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_WINDOWLIST_LINE,
|
||||
rec->refnum, rec->name == NULL ? "" : rec->name,
|
||||
rec->active == NULL ? "" : rec->active->name,
|
||||
rec->active == NULL ? "" : rec->active->visible_name,
|
||||
rec->active_server == NULL ? "" : ((SERVER_REC *) rec->active_server)->tag,
|
||||
levelstr);
|
||||
g_free(levelstr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue