mod_stanza_counter: corrected syntax mistake in the http plugin.
authorMarco Cirillo <maranda@lightwitch.org>
Mon, 02 Jan 2012 17:38:28 +0000
changeset 518 d4adda950546
parent 517 f866325305ed
child 519 219ffe3541ff
child 520 6fa8436f8ee3
mod_stanza_counter: corrected syntax mistake in the http plugin.
mod_stanza_counter/mod_stanza_counter_http.lua
--- a/mod_stanza_counter/mod_stanza_counter_http.lua	Wed Dec 21 10:38:44 2011 +0000
+++ b/mod_stanza_counter/mod_stanza_counter_http.lua	Mon Jan 02 17:38:28 2012 +0000
@@ -3,7 +3,7 @@
 
 module:set_global()
 
-local ports = module:get_option_array("stanza_counter_http_ports" or {{ port = 5280 }})
+local ports = module:get_option_array("stanza_counter_http_ports", {{ port = 5280 }})
 
 local httpserver = require "net.httpserver"