-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Conversation
Add channel name and validation Add join and part channels
Add channels to server struct
…th the output channel
Add RemoveUserFromChannel
Add Channels command with users subcommand for listing all users in a channel
// 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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Added Channel command and subcommand "users". Closes issues #4, #17 and #18
Add Join and Part commands. Closes issues #5 and #6