mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
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:
parent
a876a05520
commit
d7b846cdb3
@ -65,7 +65,6 @@ export async function execKickCommand(roomId: string, event: any, mjolnir: Mjoln
|
|||||||
await mjolnir.taskQueue.push(async () => {
|
await mjolnir.taskQueue.push(async () => {
|
||||||
return mjolnir.client.kickUser(victim, protectedRoomId, reason);
|
return mjolnir.client.kickUser(victim, protectedRoomId, reason);
|
||||||
});
|
});
|
||||||
await mjolnir.client.kickUser(victim, protectedRoomId, reason);
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await mjolnir.logMessage(LogLevel.WARN, "KickCommand", `An error happened while trying to kick ${victim}: ${e}`);
|
await mjolnir.logMessage(LogLevel.WARN, "KickCommand", `An error happened while trying to kick ${victim}: ${e}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user