equal
deleted
inserted
replaced
1231 return jid, affiliation, _affiliation_data[jid]; |
1231 return jid, affiliation, _affiliation_data[jid]; |
1232 end, nil, nil; |
1232 end, nil, nil; |
1233 end |
1233 end |
1234 |
1234 |
1235 function room_mt:set_affiliation(actor, jid, affiliation, reason, data) |
1235 function room_mt:set_affiliation(actor, jid, affiliation, reason, data) |
1236 module:log("debug", "data is %s", tostring(data)); |
|
1237 if not actor then return nil, "modify", "not-acceptable"; end; |
1236 if not actor then return nil, "modify", "not-acceptable"; end; |
1238 |
1237 |
1239 local node, host, resource = jid_split(jid); |
1238 local node, host, resource = jid_split(jid); |
1240 if not host then return nil, "modify", "not-acceptable"; end |
1239 if not host then return nil, "modify", "not-acceptable"; end |
1241 jid = jid_join(node, host); -- Bare |
1240 jid = jid_join(node, host); -- Bare |