# -*-perl-*-
# Keitairc::IrcBuffer
-# $Id: IrcBuffer.pm,v 1.1 2008-01-08 05:52:14 morimoto Exp $
+# $Id: IrcBuffer.pm,v 1.2 2008-01-09 18:47:01 morimoto Exp $
# $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/IrcBuffer.pm,v $
#
# Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
################################################################
sub channels{
my $me = shift;
- sort {
- $me->mtime($b) <=> $me->mtime($a)
- } keys %{$me->{name}};
+ map {
+ $me->{name}->{$_}
+ }(sort { $me->mtime($b) <=> $me->mtime($a) } keys %{$me->{name}})
}
################################################################