OSDN Git Service

*** empty log message ***
authormorimoto <morimoto@180c8125-5b33-4295-ad04-72a68a15b4cc>
Sat, 2 Aug 2008 15:45:05 +0000 (15:45 +0000)
committermorimoto <morimoto@180c8125-5b33-4295-ad04-72a68a15b4cc>
Sat, 2 Aug 2008 15:45:05 +0000 (15:45 +0000)
lib/Keitairc/Log.pm
lib/Keitairc/SessionManager.pm

index fde8af3..bd21e63 100644 (file)
@@ -1,6 +1,6 @@
 # -*- mode: perl; coding: utf-8 -*-
 # Keitairc::Log
-# $Id: Log.pm,v 1.1 2008-08-02 15:02:16 morimoto Exp $
+# $Id: Log.pm,v 1.2 2008-08-02 15:45:05 morimoto Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/Log.pm,v $
 #
 # Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
@@ -23,12 +23,10 @@ sub log_die{
 no strict;
 sub log_debug{
        my $m = shift;
-       if(defined $cf){
-               unless($cf->debug()){
-                       return;
-               }
+       return unless defined $cf;
+       if($cf->debug()){
+               warn "keitairc(debug): $m\n";
        }
-       warn "keitairc(debug): $m\n";
 }
 
 1;
index 74a6325..124e550 100644 (file)
@@ -1,6 +1,6 @@
 # -*- mode: perl; coding: utf-8 -*-
 # Keitairc::SessionManager
-# $Id: SessionManager.pm,v 1.7 2008-08-02 15:02:16 morimoto Exp $
+# $Id: SessionManager.pm,v 1.8 2008-08-02 15:40:27 morimoto Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/SessionManager.pm,v $
 #
 # Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
@@ -50,6 +50,8 @@ sub verify{
                        return $me->refresh($s->{id}, $user_agent);
                }
        }
+
+       undef;
 }
 
 ################################################################