diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2015-05-22 18:47:17 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2015-05-22 18:47:17 +0200 |
commit | e54e556e01ec206b7e104c472270f86955d69fc6 (patch) | |
tree | 21b3147750b11e7a905762f18aa4c82c59208cbf /src | |
parent | Minor cosmetic changes and add ping command (diff) |
Fix use of publish_only affiliation with odbc backend
Diffstat (limited to 'src')
-rw-r--r-- | src/node_hometree_odbc.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_hometree_odbc.erl b/src/node_hometree_odbc.erl index b9abac203..e99ce7247 100644 --- a/src/node_hometree_odbc.erl +++ b/src/node_hometree_odbc.erl @@ -1105,6 +1105,7 @@ decode_jid(SJID) -> ). decode_affiliation(<<"o">>) -> owner; decode_affiliation(<<"p">>) -> publisher; +decode_affiliation(<<"u">>) -> publish_only; decode_affiliation(<<"m">>) -> member; decode_affiliation(<<"c">>) -> outcast; decode_affiliation(_) -> none. @@ -1151,6 +1152,7 @@ encode_host(Host) -> ejabberd_odbc:escape(Host). ). encode_affiliation(owner) -> <<"o">>; encode_affiliation(publisher) -> <<"p">>; +encode_affiliation(publish_only) -> <<"u">>; encode_affiliation(member) -> <<"m">>; encode_affiliation(outcast) -> <<"c">>; encode_affiliation(_) -> <<"n">>. |