Skip to content

Some channels return "room_mods" even when there's no moderators. #480

@Ravenbtw

Description

@Ravenbtw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions