Software / code / prosody-modules
Comparison
mod_pastebin/mod_pastebin.lua @ 512:c819365ac6ab
mod_pastebin: Fix call to undefined function introduced in previous commit
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 19 Dec 2011 11:38:06 +0000 |
| parent | 501:e851f386c904 |
| child | 513:5e8843a869a3 |
comparison
equal
deleted
inserted
replaced
| 511:928fe4d91333 | 512:c819365ac6ab |
|---|---|
| 82 | 82 |
| 83 --module:log("debug", "Body(%s) length: %d", type(body), #(body or "")); | 83 --module:log("debug", "Body(%s) length: %d", type(body), #(body or "")); |
| 84 | 84 |
| 85 if body and ( | 85 if body and ( |
| 86 ((#body > length_threshold) | 86 ((#body > length_threshold) |
| 87 and (length_utf8(body) > length_threshold)) or | 87 and (utf8_length(body) > length_threshold)) or |
| 88 (trigger_string and body:find(trigger_string, 1, true) == 1) or | 88 (trigger_string and body:find(trigger_string, 1, true) == 1) or |
| 89 (select(2, body:gsub("\n", "%0")) >= line_threshold) | 89 (select(2, body:gsub("\n", "%0")) >= line_threshold) |
| 90 ) then | 90 ) then |
| 91 if trigger_string then | 91 if trigger_string then |
| 92 body = body:gsub("^" .. trigger_string, "", 1); | 92 body = body:gsub("^" .. trigger_string, "", 1); |