summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-05-02 11:23:55 +0000
committerfukachan <fukachan>2006-05-02 11:23:55 +0000
commit9c33f47546764f97f32d95de31bb76969c9415af (patch)
tree0d15b21f8dfb0d59ada3191b473dd1de922162d6 /fml/lib/FML/Command
parentdfd8afc50e952cf8e47c1b82935a3abdc1d4509e (diff)
downloadfml8-9c33f47546764f97f32d95de31bb76969c9415af.tar.gz
fml8-9c33f47546764f97f32d95de31bb76969c9415af.tar.bz2
fml8-9c33f47546764f97f32d95de31bb76969c9415af.zip
modified to use $confirm_command_expire_limit which value is converted
to the integer by as_second() method of FML::Config.
Diffstat (limited to 'fml/lib/FML/Command')
-rw-r--r--fml/lib/FML/Command/User/confirm.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/fml/lib/FML/Command/User/confirm.pm b/fml/lib/FML/Command/User/confirm.pm
index 96e6b2aa..9126e76f 100644
--- a/fml/lib/FML/Command/User/confirm.pm
+++ b/fml/lib/FML/Command/User/confirm.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: confirm.pm,v 1.39 2006/03/04 13:48:29 fukachan Exp $
+# $FML: confirm.pm,v 1.40 2006/03/05 08:08:37 fukachan Exp $
#
package FML::Command::User::confirm;
@@ -94,7 +94,8 @@ sub process
my $recipient_map = $config->{ primary_recipient_map };
my $cache_dir = $config->{ db_dir };
my $keyword = $config->{ confirm_command_prefix };
- my $expire_limit = $config->{ confirm_expire_limit } || 14*24*3600;
+ my $_expire_limit = $config->as_second('confirm_command_expire_limit');
+ my $expire_limit = $_expire_limit || 14 * 24 * 3600; # 14 days.
my $command = $command_context->get_clean_command();