changeset 1651:933403ee07ec

mod_muc_ban_ip: Cleanup [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 07 Apr 2015 17:35:05 +0200
parents 66d67f0bae16
children 9a3d2f1479a4
files mod_muc_ban_ip/mod_muc_ban_ip.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_ban_ip/mod_muc_ban_ip.lua	Tue Apr 07 17:34:43 2015 +0200
+++ b/mod_muc_ban_ip/mod_muc_ban_ip.lua	Tue Apr 07 17:35:05 2015 +0200
@@ -22,7 +22,7 @@
 	module:log("debug", "Banned IP address %s from %s", ip, from);
 end
 
-function check_for_incoming_ban(event)
+local function check_for_incoming_ban(event)
 	local stanza = event.stanza;
 	local to_session = full_sessions[stanza.attr.to];
 	if to_session then
@@ -42,7 +42,7 @@
 	end
 end
 
-function check_for_ban(event)
+local function check_for_ban(event)
 	local ip = event.origin.ip;
 	local to = jid_bare(event.stanza.attr.to);
 	if ip_bans[ip] and ip_bans[ip][to] then