Changeset dace02a for perl/modules/IRC/lib/BarnOwl/Module/IRC/Completion.pm
- Timestamp:
- Apr 3, 2011, 3:06:02 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- ab6d8f0
- Parents:
- b9a642a
- git-author:
- Nelson Elhage <nelhage@mit.edu> (03/12/11 11:41:48)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (04/03/11 15:06:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Module/IRC/Completion.pm
r955a36e rdace02a 11 11 sub complete_networks { keys %BarnOwl::Module::IRC::ircnets } 12 12 sub complete_dests { keys %users, complete_channels() } 13 sub complete_channels { keys %BarnOwl::Module::IRC::channels } 13 sub complete_channels { 14 my %channels; 15 for my $conn (values %BarnOwl::Module::IRC::ircnets) { 16 for my $chan (keys %{$conn->conn->{channel_list}}) { 17 $channels{$chan} = 1; 18 } 19 } 20 return keys %channels; 21 } 14 22 sub complete_nicks { keys %users } 15 23 sub complete_servers { keys %servers }
Note: See TracChangeset
for help on using the changeset viewer.