Software /
code /
prosody-modules
Comparison
mod_stanza_counter/mod_stanza_counter.lua @ 435:b6abe463b4fc
mod_stanza_counter: "*" doesn't handle stanzas.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Tue, 20 Sep 2011 22:42:03 +0000 |
parent | 434:ac4a6cc5776c |
child | 436:e4a1f0425380 |
comparison
equal
deleted
inserted
replaced
434:ac4a6cc5776c | 435:b6abe463b4fc |
---|---|
1 -- (C) 2011, Marco Cirillo (LW.Org) | 1 -- (C) 2011, Marco Cirillo (LW.Org) |
2 -- General Stanzas' Counter with web output. | 2 -- General Stanzas' Counter with web output. |
3 | 3 |
4 local jid_bare = require "util.jid".bare | 4 local jid_bare = require "util.jid".bare |
5 local httpserver = require "net.httpserver" | 5 local httpserver = require "net.httpserver" |
6 | |
7 module.host = "*" -- Needs to be global for stats web wise. | |
8 | 6 |
9 local ports = module:get_option_array("stanza_counter_ports" or {{ port = 5280 }}) | 7 local ports = module:get_option_array("stanza_counter_ports" or {{ port = 5280 }}) |
10 | 8 |
11 -- http handlers | 9 -- http handlers |
12 | 10 |