mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-19 20:02:35 +01:00
Update Room.java
This commit is contained in:
parent
c7ed4a88c2
commit
b28bf5f4ef
@ -3962,6 +3962,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this.sendComposer(new RoomRemoveRightsListComposer(this, userId).compose());
|
this.sendComposer(new RoomRemoveRightsListComposer(this, userId).compose());
|
||||||
|
|
||||||
if (this.rights.remove(userId)) {
|
if (this.rights.remove(userId)) {
|
||||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("DELETE FROM room_rights WHERE room_id = ? AND user_id = ?")) {
|
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("DELETE FROM room_rights WHERE room_id = ? AND user_id = ?")) {
|
||||||
statement.setInt(1, this.id);
|
statement.setInt(1, this.id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user