comparison mod_conformance_restricted/mod_conformance_restricted.lua @ 699:7c88e09a07e7

mod_conformance_restricted: Require util.jid
author Florian Zeitz <florob@babelmonkeys.de>
date Tue, 05 Jun 2012 22:47:12 +0200
parents 072b05999b4b
children 7dbde05b48a9
comparison
equal deleted inserted replaced
698:3a3293f37139 699:7c88e09a07e7
4 -- This project is MIT/X11 licensed. Please see the 4 -- This project is MIT/X11 licensed. Please see the
5 -- COPYING file in the source package for more information. 5 -- COPYING file in the source package for more information.
6 -- 6 --
7 7
8 local st = require "util.stanza"; 8 local st = require "util.stanza";
9 local jid = require "util.jid";
9 10
10 module:hook("message/host", function (event) 11 module:hook("message/host", function (event)
11 local origin, stanza = event.origin, event.stanza; 12 local origin, stanza = event.origin, event.stanza;
12 local node, host, resource = jid.split(stanza.attr.to); 13 local node, host, resource = jid.split(stanza.attr.to);
13 local body = stanza:get_child_text("body"); 14 local body = stanza:get_child_text("body");