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:
Timo Sirainen 2002-05-16 00:34:37 +00:00 committed by cras
commit d346fbe1a9
44 changed files with 325 additions and 247 deletions

View file

@ -10,8 +10,16 @@ servers = (
{ address = "irc.openprojects.net"; chatnet = "OPN"; port = "6667"; },
{ address = "irc.gnome.org"; chatnet = "GIMPNet"; port = "6667"; },
{ address = "irc.ptlink.net"; chatnet = "PTlink"; port = "6667"; },
{ address = "irc.sorcery.net"; chatnet = "SorceryNet"; port = "6667"; },
{ address = "irc.hashmark.net"; chatnet = "Hashmark"; port = "6667"; },
{
address = "irc.sorcery.net";
chatnet = "SorceryNet";
port = "6667";
},
{
address = "irc.hashmark.net";
chatnet = "Hashmark";
port = "6667";
},
{ address = "irc.ptnet.org"; chatnet = "PTnet"; port = "6667"; },
{ address = "silc.pspt.fi"; chatnet = "SILC"; port = "706"; }
);
@ -25,7 +33,7 @@ chatnets = {
max_whois = "4";
max_query_chans = "5";
};
EFNet = {
EFNet = {
type = "IRC";
max_kicks = "4";
max_modes = "4";
@ -39,7 +47,7 @@ chatnets = {
max_msgs = "3";
max_whois = "30";
};
DALnet = {
DALnet = {
type = "IRC";
max_kicks = "4";
max_modes = "6";
@ -160,9 +168,9 @@ statusbar = {
# treated specially .. window is printed with non-empty windows,
# window_empty is printed with empty windows
window = "{sb $winref:$T{sbmode $M}}";
window = "{sb $winref:$itemname{sbmode $M}}";
window_empty = "{sb $winref{sbservertag $tag}}";
prompt = "{prompt $[.15]T}";
prompt = "{prompt $[.15]itemname}";
prompt_empty = "{prompt $winname}";
topic = " $topic";
topic_empty = " Irssi v$J - http://irssi.org/help/";
@ -251,3 +259,10 @@ statusbar = {
};
};
};
settings = {
core = {
real_name = "Timo Sirainen";
user_name = "cras";
nick = "cras";
};
};