aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2010-11-09 14:32:40 +0100
committerChristophe Romain <christophe.romain@process-one.net>2010-11-09 14:36:04 +0100
commitfbb84c82565f93def0b5445ece7ce195e1691485 (patch)
tree76bde64eb236138a5a194c0dd76285fa424aca44
parentCorrect privacy check direction in mod_last (EJAB-1339) (diff)
fix bad plugin order issue injected in previous patch (EJAB-1286)
-rw-r--r--src/mod_pubsub/mod_pubsub.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl
index 0a51e5fad..c4308aed1 100644
--- a/src/mod_pubsub/mod_pubsub.erl
+++ b/src/mod_pubsub/mod_pubsub.erl
@@ -308,7 +308,7 @@ init_plugins(Host, ServerHost, Opts) ->
Plugins = gen_mod:get_opt(plugins, Opts, [?STDNODE]),
PepMapping = gen_mod:get_opt(pep_mapping, Opts, []),
?DEBUG("** PEP Mapping : ~p~n",[PepMapping]),
- Plugins_OK = lists:foldl(fun(Name, Acc) ->
+ PluginsOK = lists:foldl(fun(Name, Acc) ->
Plugin = list_to_atom(?PLUGIN_PREFIX ++ Name),
case catch apply(Plugin, init, [Host, ServerHost, Opts]) of
{'EXIT', _Error} ->
@@ -318,7 +318,7 @@ init_plugins(Host, ServerHost, Opts) ->
[Name | Acc]
end
end, [], Plugins),
- {Plugins_OK, TreePlugin, PepMapping}.
+ {lists:reverse(PluginsOK), TreePlugin, PepMapping}.
-spec(terminate_plugins/4 ::