equal
deleted
inserted
replaced
99 ( role_rank >= valid_roles.participant and get_changesubject(room) ) then -- and participant |
99 ( role_rank >= valid_roles.participant and get_changesubject(room) ) then -- and participant |
100 set_subject(room, occupant.nick, subject:get_text()); |
100 set_subject(room, occupant.nick, subject:get_text()); |
101 room:save(); |
101 room:save(); |
102 return true; |
102 return true; |
103 else |
103 else |
104 event.origin.send(st.error_reply(stanza, "auth", "forbidden")); |
104 event.origin.send(st.error_reply(stanza, "auth", "forbidden", "You are not allowed to change the subject")); |
105 return true; |
105 return true; |
106 end |
106 end |
107 end |
107 end |
108 end, 20); |
108 end, 20); |
109 |
109 |