Remove duplicated kick from kick command (merging cleanup)

Accidentally introduced while merging https://github.com/matrix-org/mjolnir/pull/291.
This commit is contained in:
gnuxie 2022-06-15 12:33:45 +01:00
parent a876a05520
commit d7b846cdb3

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}`);
}