create-gramstax 0.8.12 → 0.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ import type {CtxCore} from "./ctx"
|
|
|
5
5
|
|
|
6
6
|
export class BotCore extends Gramstax {
|
|
7
7
|
async hookBeforeRoute(ctx: CtxCore) {
|
|
8
|
-
const result = await new UserGuard(ctx).ensureUsername(
|
|
8
|
+
const result = await new UserGuard(ctx).ensureUsername(false)
|
|
9
9
|
if (result === null) {
|
|
10
10
|
return false
|
|
11
11
|
}
|