aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-10-18 18:41:29 +0200
committerBadlop <badlop@process-one.net>2010-10-19 00:26:36 +0200
commitfe04d57284fdf17e50fe99df7bb3500cf5c8c820 (patch)
tree4d057ce0cd9ed06a71fde79094fe8544d123d980 /src/mod_pubsub
parentdocumentation update (thanks to Karim Gemayel) (diff)
Fix bug in mod_pubsub in_subscription return value
Diffstat (limited to 'src/mod_pubsub')
-rw-r--r--src/mod_pubsub/mod_pubsub.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl
index a9293212d..731c8ab01 100644
--- a/src/mod_pubsub/mod_pubsub.erl
+++ b/src/mod_pubsub/mod_pubsub.erl
@@ -766,13 +766,15 @@ out_subscription(User, Server, JID, subscribed) ->
[] -> user_resources(PUser, PServer);
_ -> [PResource]
end,
- presence(Server, {presence, PUser, PServer, PResources, Owner});
+ presence(Server, {presence, PUser, PServer, PResources, Owner}),
+ true;
out_subscription(_,_,_,_) ->
- ok.
+ true.
in_subscription(_, User, Server, Owner, unsubscribed, _) ->
- unsubscribe_user(jlib:make_jid(User, Server, ""), Owner);
+ unsubscribe_user(jlib:make_jid(User, Server, ""), Owner),
+ true;
in_subscription(_, _, _, _, _, _) ->
- ok.
+ true.
unsubscribe_user(Entity, Owner) ->
BJID = jlib:jid_tolower(jlib:jid_remove_resource(Owner)),