File

util/sasl/plain.lua @ 446:62fb547bd31a

plugins.smacks: Convert counter to string in resumption Fixes traceback due to stricter stanza API
author Kim Alvefur <zash@zash.se>
date Thu, 10 Jun 2021 14:16:19 +0200
parent 358:a8f6fd6a70ed
line wrap: on
line source


return function (stream, name)
	if name == "PLAIN" and stream.username and stream.password then
		return function (stream)
			return "success" == coroutine.yield("\0"..stream.username.."\0"..stream.password);
		end, 5;
	end
end