Changeset

11204:ae2a11066001

mod_disco: Add some spacing to improve readability and code navigation
author Kim Alvefur <zash@zash.se>
date Tue, 10 Nov 2020 14:46:49 +0100
parents 11203:d10f59ac7f74
children 11206:f051394762ff
files plugins/mod_disco.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_disco.lua	Mon Nov 09 12:38:32 2020 +0100
+++ b/plugins/mod_disco.lua	Tue Nov 10 14:46:49 2020 +0100
@@ -71,6 +71,7 @@
 		ver = _cached_server_caps_hash;
 	});
 end
+
 local function clear_disco_cache()
 	_cached_server_disco_info, _cached_server_caps_feature, _cached_server_caps_hash = nil, nil, nil;
 end
@@ -116,6 +117,7 @@
 	origin.send(reply);
 	return true;
 end);
+
 module:hook("iq-get/host/http://jabber.org/protocol/disco#items:query", function(event)
 	local origin, stanza = event.origin, event.stanza;
 	local node = stanza.tags[1].attr.node;
@@ -179,6 +181,7 @@
 		return true;
 	end
 end);
+
 module:hook("iq-get/bare/http://jabber.org/protocol/disco#items:query", function(event)
 	local origin, stanza = event.origin, event.stanza;
 	local node = stanza.tags[1].attr.node;
@@ -204,3 +207,4 @@
 		return true;
 	end
 end);
+