mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-07-01 00:51:36 +00:00
remove duplicated client kick in kick command
This commit is contained in:
parent
a876a05520
commit
d9a96879a4
|
@ -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