✨ feat(37需求): 表情包上报
This commit is contained in:
@@ -227,20 +227,18 @@ class Filter {
|
|||||||
switch(route) {
|
switch(route) {
|
||||||
case 'chat.chatHandler.sendPrivateMessage':
|
case 'chat.chatHandler.sendPrivateMessage':
|
||||||
{
|
{
|
||||||
if(msg.type == MSG_TYPE.IMG) break;
|
let result = await checkPrivateChat(roleId, msg.targetRoleId, msg.type == MSG_TYPE.IMG? "表情": msg.content);
|
||||||
let result = await checkPrivateChat(roleId, msg.targetRoleId, msg.content);
|
|
||||||
if(!result) hasBlockWords = true;
|
if(!result) hasBlockWords = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'chat.chatHandler.sendGroupMessage':
|
case 'chat.chatHandler.sendGroupMessage':
|
||||||
{
|
{
|
||||||
if(msg.type == MSG_TYPE.IMG) break;
|
|
||||||
if(msg.channel == CHANNEL_PREFIX.GUILD) {
|
if(msg.channel == CHANNEL_PREFIX.GUILD) {
|
||||||
let result = await checkGuildChat(roleId, guildCode, msg.content);
|
let result = await checkGuildChat(roleId, guildCode, msg.type == MSG_TYPE.IMG? "表情": msg.content);
|
||||||
if(!result) hasBlockWords = true;
|
if(!result) hasBlockWords = true;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
let result = await checkOtherChat(roleId, msg.channel, msg.content);
|
let result = await checkOtherChat(roleId, msg.channel, msg.type == MSG_TYPE.IMG? "表情": msg.content);
|
||||||
if(!result) hasBlockWords = true;
|
if(!result) hasBlockWords = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user