]> granicus.if.org Git - ejabberd/commitdiff
Fix bug in mod_pubsub in_subscription return value
authorBadlop <badlop@process-one.net>
Mon, 18 Oct 2010 16:41:29 +0000 (18:41 +0200)
committerBadlop <badlop@process-one.net>
Mon, 18 Oct 2010 22:26:36 +0000 (00:26 +0200)
src/mod_pubsub/mod_pubsub.erl

index a9293212da3f261e7794121786f06dc1f1b764a1..731c8ab01832449f7d8a52905dcd6ba2ef85d2f0 100644 (file)
@@ -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)),