mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
Merge pull request #1197 from lotheac/master
use visible channel name in layout save
(cherry picked from commit 99b941db8e)
This commit is contained in:
parent
fc93d11bf6
commit
33c7416390
2 changed files with 3 additions and 3 deletions
|
|
@ -107,7 +107,7 @@ channels = (
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
ATAG = "WINDOW SERVER";
|
ATAG = "WINDOW SERVER";
|
||||||
ADDALLCHANS = "SCRIPT EXEC foreach my \\$channel (Irssi::channels()) { Irssi::command(\"CHANNEL ADD -auto \\$channel->{name} \\$channel->{server}->{tag} \\$channel->{key}\")\\;}";
|
ADDALLCHANS = "SCRIPT EXEC foreach my \\$channel (Irssi::channels()) { Irssi::command(\"CHANNEL ADD -auto \\$channel->{visible_name} \\$channel->{server}->{tag} \\$channel->{key}\")\\;}";
|
||||||
B = "BAN";
|
B = "BAN";
|
||||||
BACK = "AWAY";
|
BACK = "AWAY";
|
||||||
BANS = "BAN";
|
BANS = "BAN";
|
||||||
|
|
|
||||||
|
|
@ -169,12 +169,12 @@ static void sig_layout_save_item(WINDOW_REC *window, WI_ITEM_REC *item,
|
||||||
chat_protocol_find_id(item->chat_type);
|
chat_protocol_find_id(item->chat_type);
|
||||||
if (proto != NULL)
|
if (proto != NULL)
|
||||||
iconfig_node_set_str(subnode, "chat_type", proto->name);
|
iconfig_node_set_str(subnode, "chat_type", proto->name);
|
||||||
iconfig_node_set_str(subnode, "name", item->name);
|
iconfig_node_set_str(subnode, "name", item->visible_name);
|
||||||
|
|
||||||
if (item->server != NULL) {
|
if (item->server != NULL) {
|
||||||
iconfig_node_set_str(subnode, "tag", item->server->tag);
|
iconfig_node_set_str(subnode, "tag", item->server->tag);
|
||||||
if (IS_CHANNEL(item)) {
|
if (IS_CHANNEL(item)) {
|
||||||
rec = window_bind_add(window, item->server->tag, item->name);
|
rec = window_bind_add(window, item->server->tag, item->visible_name);
|
||||||
if (rec != NULL)
|
if (rec != NULL)
|
||||||
rec->sticky = TRUE;
|
rec->sticky = TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue