plugins/muc/subject.lib.lua
changeset 8853 26f1a49fa9c0
parent 8852 cd186331ab1f
child 8887 a387e00471d6
equal deleted inserted replaced
8852:cd186331ab1f 8853:26f1a49fa9c0
    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