aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-27 03:12:12 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-27 03:12:12 +0000
commita153b3c26704686bf9a3f2255d9aeb3c5f6aa2b1 (patch)
treed156f4bd25ecad253efb6417bf04bf93b9a5e637 /plugins/mod_tls.lua
parentd70ee791d524173cd0c203f8c9fbfabeb5fd9816 (diff)
downloadprosody-a153b3c26704686bf9a3f2255d9aeb3c5f6aa2b1.tar.gz
prosody-a153b3c26704686bf9a3f2255d9aeb3c5f6aa2b1.zip
Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store.
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index cc46d556..d5f3157b 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -9,7 +9,7 @@ local log = require "util.logger".init("mod_starttls");
local xmlns_starttls ='urn:ietf:params:xml:ns:xmpp-tls';
-add_handler("c2s_unauthed", "starttls", xmlns_starttls,
+module:add_handler("c2s_unauthed", "starttls", xmlns_starttls,
function (session, stanza)
if session.conn.starttls then
session.send(st.stanza("proceed", { xmlns = xmlns_starttls }));
@@ -25,7 +25,7 @@ add_handler("c2s_unauthed", "starttls", xmlns_starttls,
end);
local starttls_attr = { xmlns = xmlns_starttls };
-add_event_hook("stream-features",
+module:add_event_hook("stream-features",
function (session, features)
if session.conn.starttls then
features:tag("starttls", starttls_attr):up();