Diff

mod_smacks/mod_smacks.lua @ 641:06a78cba6499

mod_smacks: get_option+_number
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Apr 2012 18:20:18 +0100
parent 640:d87131b29bbd
child 642:842a8a3b0d81
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Sat Apr 28 18:16:47 2012 +0100
+++ b/mod_smacks/mod_smacks.lua	Sat Apr 28 18:20:18 2012 +0100
@@ -15,7 +15,7 @@
 
 local sm_attr = { xmlns = xmlns_sm };
 
-local resume_timeout = module:get_option("smacks_hibernation_time", 300);
+local resume_timeout = module:get_option_number("smacks_hibernation_time", 300);
 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false);
 local max_unacked_stanzas = 0;