From: Badlop Date: Sat, 14 Apr 2012 21:29:30 +0000 (+0200) Subject: Handle the scenario of disabled mod_muc (EJAB-1553) X-Git-Tag: v2.1.11~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=169b83b36d56d72f2d67635a084b350d1e874cc3;p=ejabberd Handle the scenario of disabled mod_muc (EJAB-1553) --- diff --git a/src/ejabberd_admin.erl b/src/ejabberd_admin.erl index 709f256be..24f8aab12 100644 --- a/src/ejabberd_admin.erl +++ b/src/ejabberd_admin.erl @@ -271,7 +271,7 @@ stop_kindly(DelaySeconds, AnnouncementText) -> - TimestampStart, io:format("[~p/~p ~ps] ~s... ", [NumberThis, NumberLast, SecondsDiff, Desc]), - Result = apply(Mod, Func, Args), + Result = (catch apply(Mod, Func, Args)), io:format("~p~n", [Result]), NumberThis+1 end,