25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix bug in mod_pubsub in_subscription return value

This commit is contained in:
Badlop 2010-10-18 18:41:29 +02:00
parent 16f0873488
commit a473935782

View File

@ -757,13 +757,15 @@ out_subscription(User, Server, JID, subscribed) ->
undefined -> user_resources(U, S);
_ -> [R]
end,
presence(Server, {presence, U, S, Rs, Owner});
presence(Server, {presence, U, S, Rs, Owner}),
true;
out_subscription(_, _, _, _) ->
ok.
true.
in_subscription(_, User, Server, Owner, unsubscribed, _) ->
unsubscribe_user(exmpp_jid:make(User, Server, ""), Owner);
unsubscribe_user(exmpp_jid:make(User, Server, ""), Owner),
true;
in_subscription(_, _, _, _, _, _) ->
ok.
true.
unsubscribe_user(Entity, Owner) ->
BJID = jlib:short_prepd_bare_jid(Owner),