diff mod_mam_muc/mod_mam_muc.lua @ 2626:17883c405df3

mod_mam_muc: Shorten some lines [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 21 Mar 2017 04:18:23 +0100
parents b8a66805459e
children 3f166242b460
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua	Sat Mar 18 00:20:04 2017 +0100
+++ b/mod_mam_muc/mod_mam_muc.lua	Tue Mar 21 04:18:23 2017 +0100
@@ -1,5 +1,5 @@
 -- XEP-0313: Message Archive Management for Prosody MUC
--- Copyright (C) 2011-2014 Kim Alvefur
+-- Copyright (C) 2011-2017 Kim Alvefur
 --
 -- This file is MIT/X11 licensed.
 
@@ -49,8 +49,9 @@
 
 if archive.name == "null" or not archive.find then
 	if not archive.find then
-		module:log("error", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API");
-		module:log("error", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>");
+		module:log("error", "Attempt to open archive storage returned a driver without archive API support");
+		module:log("error", "mod_%s does not support archiving",
+			archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>");
 	else
 		module:log("error", "Attempt to open archive storage returned null driver");
 	end