Fixed bug

This commit is contained in:
dbroqua 2020-01-10 20:38:56 +01:00
parent 2b89832de4
commit 3e37e7eb7f

View file

@ -201,7 +201,7 @@ const actions = (where, message, from) => {
botSay(where, process.env.PUBLIC_RADIO_STREAM) botSay(where, process.env.PUBLIC_RADIO_STREAM)
break break
case '!mute': case '!mute':
if (exploded[2] && ['on', 'off', 'state'].exploded[2] !== -1) { if (exploded[2] && ['on', 'off', 'state'].indexOf(exploded[2]) !== -1) {
switch (exploded[2]) { switch (exploded[2]) {
case 'on': case 'on':
isMute = true isMute = true