Merged SChat and IRC support.

This commit is contained in:
2022-10-19 01:24:13 +02:00
parent 4580e9129f
commit ad782a5126
9 changed files with 442 additions and 496 deletions

View File

@@ -196,9 +196,9 @@ function onCommand(args, context) {
}
function onMessage(message, context) {
const mash = mashes.get(context.room.id);
const mash = mashes.get(context.room?.id);
if (mash && context.user?.id !== config.user.id) {
if (mash && message.type === 'message' && context.user?.id !== config.user.id) {
play(message.body, context, true);
}
}