Commit b5f5be50 authored by nanahira's avatar nanahira

fix

parent 52e87182
......@@ -8,6 +8,9 @@ import { rcRegexp, rollRegexp } from '../utility/constant';
export class CompatModule extends BaseModule {
@UseMiddleware()
onRollCompat(session: Session, next: Next) {
if (!session.parsed) {
return next();
}
const { content, prefix } = session.parsed;
if (!prefix || content[0] !== 'r') return next();
const expr = content.slice(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment