Please sign in to comment.
Fixed /topic handler
Problem: /topic This is a test # Would change the topic of channel "This" to "is", and ignore the rest /topic #Channel This is a test # Would change the topic of channel "#Channel" to "This" and ignore the rest Resolution: If args starts with # or &, a channel has been provided. Set the channel's name to args.shift(), and the topic to args.join(' ') If args does not start with # or &, set the active channel's topic to args.join(' ')
- Loading branch information...