comparison mod_pastebin/mod_pastebin.lua @ 3044:be9e213d089b

mod_pastebin: Fix line count pattern added by 040eaa3844f4
author Kim Alvefur <zash@zash.se>
date Fri, 25 May 2018 00:12:12 +0200
parents 60ca0d03f3e3
children 26977c4760f5
comparison
equal deleted inserted replaced
3043:6cc44e69443a 3044:be9e213d089b
93 if not once then 93 if not once then
94 s:add_child(replacement); 94 s:add_child(replacement);
95 end 95 end
96 end 96 end
97 97
98 local line_count_pattern = string.rep("[^\n]\n", line_threshold):sub(1, -2); 98 local line_count_pattern = string.rep("[^\n]*\n", line_threshold):sub(1, -2);
99 99
100 function check_message(data) 100 function check_message(data)
101 local stanza = data.stanza; 101 local stanza = data.stanza;
102 102
103 -- Only check for MUC presence when loaded on a component. 103 -- Only check for MUC presence when loaded on a component.