summaryrefslogtreecommitdiffstats
path: root/irssi
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-11-13 18:07:27 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-11-13 18:07:27 -0500
commit9e7b06c8c5e68fd209e21c3bff6cf0762303c3ef (patch)
tree1e2787c81000bdea05d2fcc32ff501ab33c3dc89 /irssi
parent503ac9478133b12ba21e8d57711c83bc8b69f0d9 (diff)
downloadconf-9e7b06c8c5e68fd209e21c3bff6cf0762303c3ef.tar.gz
conf-9e7b06c8c5e68fd209e21c3bff6cf0762303c3ef.zip
add window type to the chanact display in irssi
Diffstat (limited to 'irssi')
-rw-r--r--irssi/config1
-rw-r--r--irssi/scripts/chanact.pl8
2 files changed, 8 insertions, 1 deletions
diff --git a/irssi/config b/irssi/config
index 7d3db05..9676768 100644
--- a/irssi/config
+++ b/irssi/config
@@ -257,6 +257,7 @@ settings = {
nicklist_width = "13";
chanact_chop_status = "yes";
bitlbee_typing_allwin = "yes";
+ chanact_display = "$H$N$T$M$C$S";
};
"fe-text" = { autostick_split_windows = "no"; };
"irc/core" = { usermode = "+i"; };
diff --git a/irssi/scripts/chanact.pl b/irssi/scripts/chanact.pl
index 732aecb..f42f403 100644
--- a/irssi/scripts/chanact.pl
+++ b/irssi/scripts/chanact.pl
@@ -185,6 +185,7 @@ sub remake() {
my $name = $win->get_active_name;
my $active = $win->{active};
+ my $type = '*';
!ref($win) && next;
@@ -192,6 +193,7 @@ sub remake() {
$name eq "bots" && next;
$name eq "hilight" && next;
+ $type = '!' if $name eq "(status)";
# (status) is an awfull long name, so make it short to 'S'
# some people don't like it, so make it configurable
if (Irssi::settings_get_bool('chanact_chop_status')
@@ -218,7 +220,11 @@ sub remake() {
} elsif ($nick->{halfop}) {
$mode = "%";
}
+ $type = substr($name, 0, 1);
}
+ elsif ($active->{type} eq "QUERY") {
+ $type = '?';
+ }
# find the right color
if ($win->{data_level} == 1) {
@@ -250,7 +256,7 @@ sub remake() {
$display = Irssi::settings_get_str('chanact_display');
}
- $actString .= expand($display,"C",$name,"N",$number,"M",$mode,"H",$hilight,"S","}{sb_background}").$separator;
+ $actString .= expand($display,"T",$type,"C",$name,"N",$number,"M",$mode,"H",$hilight,"S","}{sb_background}").$separator;
}
# assemble the final string