25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

fix missing member affiliation on odbc plugin

SVN Revision: 2603
This commit is contained in:
Christophe Romain 2009-09-18 13:43:49 +00:00
parent 970973cb9a
commit 9aee12d83b

View File

@ -1295,6 +1295,7 @@ decode_node(N) -> ?PUBSUB:string_to_node(N).
decode_affiliation("o") -> owner; decode_affiliation("o") -> owner;
decode_affiliation("p") -> publisher; decode_affiliation("p") -> publisher;
decode_affiliation("m") -> member;
decode_affiliation("c") -> outcast; decode_affiliation("c") -> outcast;
decode_affiliation(_) -> none. decode_affiliation(_) -> none.
@ -1314,6 +1315,7 @@ encode_jid(JID) -> ?PUBSUB:escape(jlib:jid_to_string(JID)).
encode_affiliation(owner) -> "o"; encode_affiliation(owner) -> "o";
encode_affiliation(publisher) -> "p"; encode_affiliation(publisher) -> "p";
encode_affiliation(member) -> "m";
encode_affiliation(outcast) -> "c"; encode_affiliation(outcast) -> "c";
encode_affiliation(_) -> "n". encode_affiliation(_) -> "n".