Closed Ravenbtw closed 2 years ago
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
Might wanna add a check to see if "msg.split(': ')[1]" exists on line 285.
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:
Server configuration