diff --git a/ChangeLog b/ChangeLog index e5a9f1ea0..eac4416f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-01-11 Pablo Polvorin + + * src/mod_pubsub/mod_pubsub.erl: Fix typo. + 2009-01-11 Christophe Romain * src/mod_pubsub/mod_pubsub.erl: fix owners cache and fix unsubscribe diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index a5063678e..1481e5269 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -1896,7 +1896,7 @@ set_affiliations(Host, Node, From, EntitiesEls) -> error -> {error, 'bad-request'}; _ -> - Action = fun(#pubsub_node{type = Type, owners = Owners}) -> + Action = fun(#pubsub_node{type = Type, owners = Owners}=N) -> case lists:member(Owner, Owners) of true -> lists:foreach( @@ -1908,7 +1908,7 @@ set_affiliations(Host, Node, From, EntitiesEls) -> NewOwners = [NewOwner|Owners], tree_call(Host, set_node, [N#pubsub_node{owners = NewOwners}]); none -> - NewOwner = jlib:short_prepd_bare_jid(JID), + OldOwner = jlib:short_prepd_bare_jid(JID), case lists:member(OldOwner, Owners) of true -> NewOwners = Owners--[OldOwner],