Software /
code /
prosody
Comparison
plugins/mod_roster.lua @ 421:63be85693710
Modules now sending disco replies
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 26 Nov 2008 08:27:09 +0500 |
parent | 326:99a8317d1235 |
child | 438:193f9dd64f17 |
comparison
equal
deleted
inserted
replaced
420:aa1db0a80089 | 421:63be85693710 |
---|---|
6 | 6 |
7 local handle_outbound_presence_subscriptions_and_probes = require "core.presencemanager".handle_outbound_presence_subscriptions_and_probes; | 7 local handle_outbound_presence_subscriptions_and_probes = require "core.presencemanager".handle_outbound_presence_subscriptions_and_probes; |
8 local rm_remove_from_roster = require "core.rostermanager".remove_from_roster; | 8 local rm_remove_from_roster = require "core.rostermanager".remove_from_roster; |
9 local rm_add_to_roster = require "core.rostermanager".add_to_roster; | 9 local rm_add_to_roster = require "core.rostermanager".add_to_roster; |
10 local rm_roster_push = require "core.rostermanager".roster_push; | 10 local rm_roster_push = require "core.rostermanager".roster_push; |
11 | |
12 require "core.discomanager".set("roster", "jabber:iq:roster"); | |
11 | 13 |
12 add_iq_handler("c2s", "jabber:iq:roster", | 14 add_iq_handler("c2s", "jabber:iq:roster", |
13 function (session, stanza) | 15 function (session, stanza) |
14 if stanza.tags[1].name == "query" then | 16 if stanza.tags[1].name == "query" then |
15 if stanza.attr.type == "get" then | 17 if stanza.attr.type == "get" then |