Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channels, Commands: Part, Join, and Channel #19

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jeramyRR
Copy link
Contributor

Added Channel command and subcommand "users". Closes issues #4, #17 and #18
Add Join and Part commands. Closes issues #5 and #6

// IsValidChannelName checks the length and format of a string and returns
// true if the string is valid
func IsValidChannelName(name string) bool {
if len(name) < 50 && ValidChannelNameRgx.MatchString(name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will

len(name) < 50 && ValidChannelNameRgx.MatchString(name)

evaluate to a boolean? If it will, I would simply return the result of that instead of using the conditional here to return the true/false

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I should have noticed that. The change will be in my next push.

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

Successfully merging this pull request may close these issues.

None yet

2 participants