# HG changeset patch # User Matthew Wild # Date 1266274575 0 # Node ID 064efb684aff2ac6f6df156606b67c94207de19d # Parent 625d02b2a1a0c755adf6ff5ca0cd7c04ebfe835e mod_saslauth: Correct syntax for gracefully handling a missing cyrussasl library diff -r 625d02b2a1a0 -r 064efb684aff plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Mon Feb 15 22:53:32 2010 +0000 +++ b/plugins/mod_saslauth.lua Mon Feb 15 22:56:15 2010 +0000 @@ -36,8 +36,8 @@ 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");