mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Fix bad pattern matching on undefined resource
This commit is contained in:
parent
5d1d797330
commit
2028698336
@ -740,7 +740,7 @@ out_subscription(User, Server, JID, subscribed) ->
|
||||
Owner = exmpp_jid:make(User, Server, ""),
|
||||
{U, S, R} = jlib:short_prepd_jid(JID),
|
||||
Rs = case R of
|
||||
[] -> user_resources(U, S);
|
||||
undefined -> user_resources(U, S);
|
||||
_ -> [R]
|
||||
end,
|
||||
presence(Server, {presence, U, S, Rs, Owner});
|
||||
|
@ -550,7 +550,7 @@ out_subscription(User, Server, JID, subscribed) ->
|
||||
Owner = exmpp_jid:make(User, Server, ""),
|
||||
{U, S, R} = jlib:short_prepd_jid(JID),
|
||||
Rs = case R of
|
||||
[] -> user_resources(U, S);
|
||||
undefined -> user_resources(U, S);
|
||||
_ -> [R]
|
||||
end,
|
||||
presence(Server, {presence, U, S, Rs, Owner});
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- mod_pubsub.erl 2010-06-10 14:25:01.000000000 +0200
|
||||
+++ mod_pubsub_odbc.erl 2010-06-10 14:25:09.000000000 +0200
|
||||
--- mod_pubsub.erl 2010-06-10 18:25:27.000000000 +0200
|
||||
+++ mod_pubsub_odbc.erl 2010-06-10 18:25:34.000000000 +0200
|
||||
@@ -42,7 +42,7 @@
|
||||
%%% 6.2.3.1, 6.2.3.5, and 6.3. For information on subscription leases see
|
||||
%%% XEP-0060 section 12.18.
|
||||
|
Loading…
Reference in New Issue
Block a user