OSDN Git Service

Reduce diffs against 00all.
authornyan_ <nyan_@180c8125-5b33-4295-ad04-72a68a15b4cc>
Sun, 4 Jan 2009 13:49:15 +0000 (13:49 +0000)
committernyan_ <nyan_@180c8125-5b33-4295-ad04-72a68a15b4cc>
Sun, 4 Jan 2009 13:49:15 +0000 (13:49 +0000)
lib/plugins/00unread

index 12b4790..98f628e 100644 (file)
@@ -1,7 +1,7 @@
 # -*- mode: perl; coding: utf-8 -*-
 # keitairc/lib/plugins/00unread
 # チャネルの未読メッセージ閲覧
-# $Id: 00unread,v 1.14 2009-01-03 00:32:03 morimoto Exp $
+# $Id: 00unread,v 1.15 2009-01-04 13:49:15 nyan_ Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/plugins/00unread,v $
 
 # The line number (1 incremented) and filename below must be
@@ -52,9 +52,10 @@ $plugin = {
 
                my $ci = new Keitairc::ClientInfo($request);
                my $view = new Keitairc::View($::cf, $ci);
+               my $cname = Encode::encode($::cf->web_charset(), $::ib->simple_escape($::ib->compact_channel_name($cid)));
                return $view->render('unread.html', {
                        loop => \@loop,
-                       channel_compact => Encode::encode($::cf->web_charset(), $::ib->simple_escape($::ib->compact_channel_name($cid))),
+                       channel_compact => $cname,
                        follow_nick => $::cf->follow_nick(),
                        cid => $cid,
                             });