# HG changeset patch # User Matthew Wild # Date 1335724571 -3600 # Node ID 83cedf648b4689583ff39f6af78ffaba4ea75901 # Parent 7ce502f212705db6532f2b3ccde3cbe28fe3b281 modulemanager: Hide deprecation warning for modules loaded on '*' directly (e.g. prosodyctl mod_) (thanks Zash) diff -r 7ce502f21270 -r 83cedf648b46 core/modulemanager.lua --- a/core/modulemanager.lua Sun Apr 29 19:31:44 2012 +0100 +++ b/core/modulemanager.lua Sun Apr 29 19:36:11 2012 +0100 @@ -180,7 +180,9 @@ if api_instance.host == "*" then if not api_instance.global then -- COMPAT w/pre-0.9 - log("warn", "mod_%s: Setting module.host = '*' deprecated, call module:set_global() instead", module_name); + if host ~= "*" then + log("warn", "mod_%s: Setting module.host = '*' deprecated, call module:set_global() instead", module_name); + end api_instance:set_global(); end modulemap[host][module_name] = nil;