Skip to content

Don't crash on empty rpl_whoischannels message#510

Open
panzi wants to merge 1 commit intomartynsmith:masterfrom
panzi:patch-1
Open

Don't crash on empty rpl_whoischannels message#510
panzi wants to merge 1 commit intomartynsmith:masterfrom
panzi:patch-1

Conversation

@panzi
Copy link

@panzi panzi commented Apr 20, 2017

On an empty message message.args[2] was undefined and calling .trim() on that crashed. And if message.args[2] would have been '' the result would be [''], which would have been also wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant