Comparison

plugins/mod_private.lua @ 421:63be85693710

Modules now sending disco replies
author Waqas Hussain <waqas20@gmail.com>
date Wed, 26 Nov 2008 08:27:09 +0500
parent 310:b28b51746fe7
child 438:193f9dd64f17
comparison
equal deleted inserted replaced
420:aa1db0a80089 421:63be85693710
1 1
2 local st = require "util.stanza" 2 local st = require "util.stanza"
3 3
4 local jid_split = require "util.jid".split; 4 local jid_split = require "util.jid".split;
5 local datamanager = require "util.datamanager" 5 local datamanager = require "util.datamanager"
6
7 require "core.discomanager".set("private", "jabber:iq:private");
6 8
7 add_iq_handler("c2s", "jabber:iq:private", 9 add_iq_handler("c2s", "jabber:iq:private",
8 function (session, stanza) 10 function (session, stanza)
9 local type = stanza.attr.type; 11 local type = stanza.attr.type;
10 local query = stanza.tags[1]; 12 local query = stanza.tags[1];