# HG changeset patch # User Paul Aurich # Date 1327445873 28800 # Node ID 0a4781f165e33aab8e67031e3a0a7da9c59ac127 # Parent 381e0b874e6db4916054b2d86e54a958a5c4059d mod_saslauth: "" ~= nil (thanks, Zash!) diff -r 381e0b874e6d -r 0a4781f165e3 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Wed Jan 18 08:54:26 2012 +0500 +++ b/plugins/mod_saslauth.lua Tue Jan 24 14:57:53 2012 -0800 @@ -191,8 +191,10 @@ session.from_host = text; end session.sends2s(build_reply("success")) - module:log("info", "Accepting SASL EXTERNAL identity from %s", text or session.from_host); - s2s_make_authenticated(session, text or session.from_host) + + local domain = text ~= "" and text or session.from_host; + module:log("info", "Accepting SASL EXTERNAL identity from %s", domain); + s2s_make_authenticated(session, domain); session:reset_stream(); return true end