Permalink
Browse files

return window list instead of channel list

  • Loading branch information...
1 parent c103458 commit 1741a9326ffde57926a47f339f1a96c51ca06837 @typester committed Mar 19, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 channel-socket.pl
View
@@ -34,8 +34,10 @@
},
);
- for my $channel (Irssi::channels()) {
- $h->push_write("$channel->{name}\n") if $h;
+ for my $window (Irssi::windows()) {
+ my $name = $window->{active} ? $window->{active}{name} : $window->{name};
+ my $server_tag = $window->{servertag};
+ $h->push_write("$name\n") if $h;
}
$h->on_drain(sub { undef $h }) if $h;
};

0 comments on commit 1741a93

Please sign in to comment.