aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-15 22:56:15 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-15 22:56:15 +0000
commita7e7b8488b605d4a4b1b59355a57408e1bacd017 (patch)
tree586f0ba6f3bcbcb44f27a1074ed4708e5b92116e /plugins
parent609442222a1190bf0b79c6f59532d963c8291d91 (diff)
downloadprosody-a7e7b8488b605d4a4b1b59355a57408e1bacd017.tar.gz
prosody-a7e7b8488b605d4a4b1b59355a57408e1bacd017.zip
mod_saslauth: Correct syntax for gracefully handling a missing cyrussasl library
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 398ae9f8..eeb4f8d8 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -36,8 +36,8 @@ local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
local new_sasl;
if sasl_backend == "cyrus" then
- local cyrus, err = pcall(require, "util.sasl_cyrus");
- if cyrus then
+ local ok, cyrus = pcall(require, "util.sasl_cyrus");
+ if ok then
local cyrus_new = cyrus.new;
new_sasl = function(realm)
return cyrus_new(realm, module:get_option("cyrus_service_name") or "xmpp");