diff 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
parents e851f386c904
children 5e8843a869a3
line wrap: on
line diff
--- a/mod_pastebin/mod_pastebin.lua	Mon Dec 19 10:40:28 2011 +1100
+++ b/mod_pastebin/mod_pastebin.lua	Mon Dec 19 11:38:06 2011 +0000
@@ -84,7 +84,7 @@
 	
 	if body and (
 		((#body > length_threshold)
-		 and (length_utf8(body) > length_threshold)) or
+		 and (utf8_length(body) > length_threshold)) or
 		(trigger_string and body:find(trigger_string, 1, true) == 1) or
 		(select(2, body:gsub("\n", "%0")) >= line_threshold)
 	) then