Skip to content

Commit be85e56

Browse files
committed
fix(group-management): Fixed using mute bug lik ->
'/mute 1m' In this bug, when we killed a person, due to ".split(" ")[1]" it was returned to us as undefined and the program thought that the admin did not specify the time and silenced the user forever.
1 parent d308a4a commit be85e56

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/group-management/AdminCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export class AdminCommand {
7676
const userId = await bot.getRepliedUserId();
7777
const durationStr = String(ctx.match as string)
7878
.trim()
79-
.split(" ")[1];
8079
let durationMs: number | null = null;
8180
if (durationStr) {
8281
durationMs = parseDuration(durationStr);

0 commit comments

Comments
 (0)