mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-08-06 04:43:54 +09:00
Validate name
This commit is contained in:
@ -80,6 +80,11 @@ export default class CoreModule implements IModule {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (name.includes('@')) {
|
||||
msg.reply(serifs.core.invalidName);
|
||||
return true;
|
||||
}
|
||||
|
||||
const titles = ['さん', 'くん', '君', 'ちゃん', '様', '先生'];
|
||||
|
||||
const withSan = titles.some(t => name.endsWith(t));
|
||||
|
Reference in New Issue
Block a user