]> granicus.if.org Git - ejabberd/commitdiff
typo fix on roster access_model
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 10 Mar 2009 12:08:12 +0000 (12:08 +0000)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 10 Mar 2009 12:08:12 +0000 (12:08 +0000)
SVN Revision: 1983

src/mod_pubsub/mod_pubsub.erl

index 0f94a66b8365e3df10b4269af273ddb909e6ba5a..e65f548a4636bd15799fa4c45744094674f4d4a7 100644 (file)
@@ -519,7 +519,8 @@ handle_cast({presence, User, Server, Resources, JID}, State) ->
                                    authorize -> false; % likewise
                                    roster ->
                                        Grps = get_option(Options, roster_groups_allowed, []),
-                                       element(2, get_roster_info(User, Server, LJID, Grps))
+                                       {OU, OS, _} = Owner,
+                                       element(2, get_roster_info(OU, OS, LJID, Grps))
                            end,
                            if Subscribed ->
                                send_last_item(Owner, Node, LJID);