[from now] 2013/08/02 19:18:49

diff --git a/lib/kptchan.rb b/lib/kptchan.rb
index eeeac12..14b0efe 100644
--- a/lib/kptchan.rb
+++ b/lib/kptchan.rb
@@ -21,7 +21,6 @@ CATEGORY_DICTIONARIES = [
 ]

-
 Mongoid.load!("config/mongoid.yaml", :production)

 # tasks collectionが存在しなければ、cappedとして作成。
@@ -79,7 +78,7 @@ class Interpreter
 end

-class KPTChan
+class KPTChanController
   def initialize
     @config = YAML.load_file "config/config.yaml"
     @interpreter = Interpreter.new
@@ -111,7 +110,7 @@ class KPTChan

   def react_to(interpreted_message)
     msg = interpreted_message
-
+    p msg
     # TODO: 条件はこれでいいのか？
     return until msg[:request] && msg[:category]

@@ -127,7 +126,6 @@ class KPTChan
     Behavior.send msg[:request].to_sym,
                   @client, msg[:speaker_nickname], options
   end
-
 end

@@ -161,9 +159,10 @@ module Behavior
   def self.list(client, speaker_nickname, options)
     list = Task.where(category: options[:category], done: false, available: true)

-    client.privmsg "#{options[:category]}"
+    client.notice "#{client.channel}", "#{options[:category]}"
     list.each do |elem|
-      client.privmsg "#{elem.inc_id}: #{elem.content}"
+      # TODO spaceや:が途中に入ると上手く出力できない。必要であればzirconのコードを修正。
+      client.notice "#{client.channel}", "#{elem.inc_id}.#{elem.content}(#{elem.created_at.strftime('%Y-%m-%d_%H:%M')})"
     end
   end

@@ -174,5 +173,5 @@ module Behavior
 end

-kpt = KPTChan.new
+kpt = KPTChanController.new
 kpt.run