Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 7906:aa6b036150eb
mod_mam: Remove repeated blank line
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 20 Feb 2017 00:51:12 +0100 |
parent | 7905:daf83bd94906 |
child | 7908:dbdaa8487ecd |
comparison
equal
deleted
inserted
replaced
7905:daf83bd94906 | 7906:aa6b036150eb |
---|---|
132 local qmax = m_min(qset and qset.max or default_max_items, max_max_items); | 132 local qmax = m_min(qset and qset.max or default_max_items, max_max_items); |
133 local reverse = qset and qset.before or false; | 133 local reverse = qset and qset.before or false; |
134 local before, after = qset and qset.before, qset and qset.after; | 134 local before, after = qset and qset.before, qset and qset.after; |
135 if type(before) ~= "string" then before = nil; end | 135 if type(before) ~= "string" then before = nil; end |
136 | 136 |
137 | |
138 -- Load all the data! | 137 -- Load all the data! |
139 local data, err = archive:find(origin.username, { | 138 local data, err = archive:find(origin.username, { |
140 start = qstart; ["end"] = qend; -- Time range | 139 start = qstart; ["end"] = qend; -- Time range |
141 with = qwith; | 140 with = qwith; |
142 limit = qmax + 1; | 141 limit = qmax + 1; |
304 end | 303 end |
305 | 304 |
306 local function c2s_message_handler(event) | 305 local function c2s_message_handler(event) |
307 return message_handler(event, true); | 306 return message_handler(event, true); |
308 end | 307 end |
309 | |
310 | 308 |
311 local function strip_stanza_id(event) | 309 local function strip_stanza_id(event) |
312 local strip_by = jid_bare(event.origin.full_jid); | 310 local strip_by = jid_bare(event.origin.full_jid); |
313 event.stanza:maptags(function(tag) | 311 event.stanza:maptags(function(tag) |
314 if not ( tag.attr.xmlns == xmlns_st_id and tag.attr.by == strip_by ) then | 312 if not ( tag.attr.xmlns == xmlns_st_id and tag.attr.by == strip_by ) then |