# HG changeset patch # User Matthew Wild # Date 1370611741 -3600 # Node ID 0b41122b19f967983e95350e8fe14831395cca42 # Parent b307b72ae52737b405299162937ab6a35a716948 mod_muc_limits: Abort loading on non-MUC hosts (thanks Ge0rG) diff -r b307b72ae527 -r 0b41122b19f9 mod_muc_limits/mod_muc_limits.lua --- a/mod_muc_limits/mod_muc_limits.lua Fri Jun 07 17:54:45 2013 +0700 +++ b/mod_muc_limits/mod_muc_limits.lua Fri Jun 07 14:29:01 2013 +0100 @@ -1,3 +1,8 @@ + +if not hosts[module.host].modules.muc then + module:log("error", "This module only works on MUC components!"); + return; +end local jid_split, jid_bare = require "util.jid".split, require "util.jid".bare; local st = require "util.stanza";