remove duplicated client kick in kick command

This commit is contained in:
gnuxie 2022-06-15 12:31:16 +01:00
parent a876a05520
commit d9a96879a4

View File

@ -65,7 +65,6 @@ export async function execKickCommand(roomId: string, event: any, mjolnir: Mjoln
await mjolnir.taskQueue.push(async () => {
return mjolnir.client.kickUser(victim, protectedRoomId, reason);
});
await mjolnir.client.kickUser(victim, protectedRoomId, reason);
} catch (e) {
await mjolnir.logMessage(LogLevel.WARN, "KickCommand", `An error happened while trying to kick ${victim}: ${e}`);
}