aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2019-03-25 10:32:39 +0000
committerMatthew Wild <mwild1@gmail.com>2019-03-25 10:32:39 +0000
commit5074566d79830e5a6ecba2b13fd9cdad2e1fb902 (patch)
tree65f66915875c6c604c6f454dddba3dcfce78d9bd /plugins/mod_csi_simple.lua
parentba9e50592452854fe03cc12b1c376c17b8091c80 (diff)
downloadprosody-5074566d79830e5a6ecba2b13fd9cdad2e1fb902.tar.gz
prosody-5074566d79830e5a6ecba2b13fd9cdad2e1fb902.zip
mod_csi_simple: Fix type in function name
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r--plugins/mod_csi_simple.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index 2dda1c42..c79c56fc 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -90,7 +90,7 @@ function enable_optimizations(session)
end
end
-function disble_optimizations(session)
+function disable_optimizations(session)
if session.conn and session.conn and session.conn.resume_writes then
filters.remove_filter(session, "stanzas/out", manage_buffer);
filters.remove_filter(session, "bytes/in", flush_buffer);
@@ -105,7 +105,7 @@ end);
module:hook("csi-client-active", function (event)
local session = event.origin;
- disble_optimizations(session);
+ disable_optimizations(session);
end);
@@ -132,9 +132,8 @@ function module.unload()
for _, user_session in pairs(prosody.hosts[module.host].sessions) do
for _, session in pairs(user_session.sessions) do
if session.state == "inactive" then
- disble_optimizations(session);
+ disable_optimizations(session);
end
end
end
end
-