Merged SChat and IRC support.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user