From 36080fb68222c24df49bc31df57a1c55df7e8de4 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Sat, 10 Jan 2009 13:40:38 +0000 Subject: [PATCH] fix unsubscription of full jid subscribed node (EJAB-839) SVN Revision: 1795 --- ChangeLog | 5 +++++ src/mod_pubsub/node_default.erl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 95598c786..f31707cff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-10 Christophe Romain + + * src/mod_pubsub/node_default.erl: fix unsubscription of full jid + subscribed node (thanks to Andy Skelton)(EJAB-839) + 2009-01-09 Pablo Polvorin * src/mod_muc/mod_muc_room.erl, src/mod_muc/mod_muc.erl diff --git a/src/mod_pubsub/node_default.erl b/src/mod_pubsub/node_default.erl index 9fe26920c..ebb92e112 100644 --- a/src/mod_pubsub/node_default.erl +++ b/src/mod_pubsub/node_default.erl @@ -374,7 +374,7 @@ unsubscribe_node(Host, Node, Sender, Subscriber, _SubId) -> (not Authorized) and (Affiliation =/= owner) -> {error, 'forbidden'}; %% Was just subscriber, remove the record - Affiliation == none -> + SubState#pubsub_state.affiliation == none -> del_state(SubState#pubsub_state.stateid), {result, default}; true ->