Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Add user list with IPs using array and print_wrap - #32

Merged
bcyran merged 1 commit into
bcyran:masterfrom
gobeyondpty:pr-user-display-fix
Sep 29, 2025
Merged

bcyran merged 1 commit into
bcyran:masterfrom
gobeyondpty:pr-user-display-fix

Conversation

@gobeyondpty

Copy link
Copy Markdown
Contributor

This commit addresses the PR review feedback:

  • Convert users variable to an array instead of string concatenation
  • Use print_wrap function to properly format multiple users
  • Display users with their source IPs in format: username(IP)
  • Handle multiple users gracefully with comma separation

Implements the requested changes from PR #30 review to ensure consistency with how the services module handles arrays.

🤖 Generated with Claude Code

Comment thread modules/10-user Outdated
Comment thread modules/10-user Outdated
@gobeyondpty

Copy link
Copy Markdown
Contributor Author

fixed in force-pushed commit

@bcyran

bcyran commented Sep 25, 2025

Copy link
Copy Markdown
Owner

@gobeyondpty I think you pushed much more than you intended to. Please push a single commit touching a single module.

- Convert users variable to an array as suggested by bcyran
- Add space between username and IP for better readability: username (IP)
- Use print_wrap function for better formatting with multiple users
- Follow shellcheck recommendations for proper array handling
- Use regex to extract IP from parentheses for portability across different who output formats
- Handle cases where IP might be empty (local logins) by showing just username
@gobeyondpty

Copy link
Copy Markdown
Contributor Author

done correctly this time lol

@bcyran
bcyran merged commit d3d498c into bcyran:master Sep 29, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants