]> granicus.if.org Git - ejabberd/commitdiff
fix bad plugin order issue injected in previous patch (EJAB-1286)
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 9 Nov 2010 13:32:40 +0000 (14:32 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 9 Nov 2010 13:32:40 +0000 (14:32 +0100)
src/mod_pubsub/mod_pubsub.erl

index 919d2c3d0a7c5a7df45b000aab1e986d1c145de0..d494ebcce0c244fd0c18029c280d73673b7643b9 100644 (file)
@@ -269,7 +269,7 @@ init_plugins(Host, ServerHost, Opts) ->
                            [Name | Acc]
                          end
                end, [], Plugins),
-    {PluginsOK, TreePlugin, PepMapping}.
+    {lists:reverse(PluginsOK), TreePlugin, PepMapping}.
 
 terminate_plugins(Host, ServerHost, Plugins, TreePlugin) ->
     lists:foreach(fun(Name) ->