Changeset

3548:8a15a9b13881

mod_muc_gc10: Abort on Prosody 0.11
author Kim Alvefur <zash@zash.se>
date Wed, 03 Apr 2019 11:57:37 +0200
parents 3547:82cf953fabae
children 3549:b059a3fb2a58
files mod_muc_gc10/mod_muc_gc10.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_gc10/mod_muc_gc10.lua	Wed Apr 03 11:55:38 2019 +0200
+++ b/mod_muc_gc10/mod_muc_gc10.lua	Wed Apr 03 11:57:37 2019 +0200
@@ -1,7 +1,7 @@
 local jid_bare = require "util.jid".bare;
 local st = require "util.stanza";
 
-local rooms = module:depends"muc".rooms;
+local rooms = assert(module:depends"muc".rooms, "This module is not needed with Prosody >=0.11");
 
 module:hook("presence/full", function (event)
 	local stanza, origin = event.stanza, event.origin;