Some channels return "room_mods" even when there's no moderators.
Ravenbtw opened this issue · 1 comments
Ravenbtw commented
Actual behaviour:
It gives an error. IRC returns "The moderators of this channel are:" and nothing else.
Expected behaviour:
It returns an empty array or says there's no moderators.
Error log:
const mods = msg.split(': ')[1].toLowerCase()
^
TypeError: Cannot read property 'toLowerCase' of undefined
Server configuration
- tmi.js version: 1.8.3
Ravenbtw commented
Might wanna add a check to see if "msg.split(': ')[1]" exists on line 285.