@fraqjs/fraq 0.13.1 → 0.13.2
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.
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -366,7 +366,9 @@ var Router = class Router {
|
|
|
366
366
|
consumeActivation(tokenizer, activation, session) {
|
|
367
367
|
switch (activation.type) {
|
|
368
368
|
case "direct": return true;
|
|
369
|
-
case "mention":
|
|
369
|
+
case "mention":
|
|
370
|
+
if (!tokenizer.consumeMention(session.selfId)) return false;
|
|
371
|
+
return activation.prefix === void 0 || tokenizer.consumeTextPrefix(activation.prefix);
|
|
370
372
|
case "prefix": return tokenizer.consumeTextPrefix(activation.prefix);
|
|
371
373
|
}
|
|
372
374
|
}
|