Software /
code /
prosody
Comparison
plugins/mod_smacks.lua @ 12137:4e61aaa4e9b2
mod_smacks: Log error to silence luacheck
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 31 Dec 2021 00:59:10 +0100 |
parent | 12136:6366240d2edb |
child | 12272:fe0f5c47fda3 |
comparison
equal
deleted
inserted
replaced
12136:6366240d2edb | 12137:4e61aaa4e9b2 |
---|---|
295 count = count + 1; | 295 count = count + 1; |
296 if count > max_old_sessions then break end | 296 if count > max_old_sessions then break end |
297 keep[token] = info; | 297 keep[token] = info; |
298 end | 298 end |
299 all_old_sessions:set(session.username, keep); | 299 all_old_sessions:set(session.username, keep); |
300 elseif err then | |
301 module:log("error", "Unable to retrieve old resumption counters: %s", err); | |
300 end | 302 end |
301 end | 303 end |
302 | 304 |
303 module:log("debug", "Enabling stream management"); | 305 module:log("debug", "Enabling stream management"); |
304 session.smacks = xmlns_sm; | 306 session.smacks = xmlns_sm; |