Diff

plugins/mod_proxy65.lua @ 10111:0f335815244f

plugins: Remove tostring call from logging Taken care of by loggingmanager now Mass-rewrite using lua pattern like `tostring%b()`
author Kim Alvefur <zash@zash.se>
date Tue, 30 Jul 2019 02:29:36 +0200
parent 9645:cc642c9c5ad5
child 11011:c079103c9172
line wrap: on
line diff
--- a/plugins/mod_proxy65.lua	Tue Jul 30 02:24:06 2019 +0200
+++ b/plugins/mod_proxy65.lua	Tue Jul 30 02:29:36 2019 +0200
@@ -117,7 +117,7 @@
 				if jid_compare(jid, acl) then allow = true; break; end
 			end
 			if allow then break; end
-			module:log("warn", "Denying use of proxy for %s", tostring(stanza.attr.from));
+			module:log("warn", "Denying use of proxy for %s", stanza.attr.from);
 			origin.send(st.error_reply(stanza, "auth", "forbidden"));
 			return true;
 		end