aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Khramtsov <xramtsov@gmail.com>2014-05-05 16:38:16 +0400
committerEvgeny Khramtsov <xramtsov@gmail.com>2014-05-05 16:38:16 +0400
commit2723056fae49df9b8f0498e3757495e88f44a6a9 (patch)
treecadab6506b2e7cbc1214a60a749ef837c8da37e9
parentTemporary room not destroyed when the last participant is expulsed (EJAB-520) (diff)
parentFix small bug in presence_based_delivery implementation (diff)
Merge pull request #195 from Iperity/master
Fix small bug in presence_based_delivery implementation
Diffstat (limited to '')
-rw-r--r--src/mod_pubsub.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 87d49cb54..0b81265f8 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -4156,7 +4156,7 @@ presence_can_deliver({User, Server, Resource}, true) ->
({session, _, _ , _, undefined, _}, _Acc) -> false;
({session, _, {_, _, R}, _, _Priority, _}, _Acc) ->
case Resource of
- [] -> true;
+ <<>> -> true;
R -> true;
_ -> false
end