Server init message does not show correct names if there is only one specified channel #6
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
boranseckin/bridge#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When the server is initialized, the message does not show correct channel names if there is only one additional channel specified by the command line argument. The specified channel, however, correctly initializes.
To Reproduce
Steps to reproduce the behaviour:
bridge-server -c testBridge - Server initialized! Port: 3636 - Channel: [/]Expected behaviour
When there is no additional channel, the channel array includes
undefinedand its length is one. When there is only one additional channel, the channel array includes that that channel and its length is one. Since both situations have the same output, [line 63 at server.js](boranseckin/bridge@207a73ece3/server.js#L63) prints the same result.Version: 1.3.1
Fixed with
b490d73344.