This commit is contained in:
Liam Stanley 2016-11-22 00:28:33 -05:00
parent 32452b2b94
commit 525a5fdb4a

@ -107,6 +107,7 @@ func StripColors(text string) string {
// ; any octet except NUL, BELL, CR, LF, " ", "," and ":"
// channelid = 5( 0x41-0x5A / digit ) ; 5( A-Z / 0-9 )
func IsValidChannel(channel string) bool {
// TODO: Proper validation is needed for this.
if len(channel) <= 1 || len(channel) > 50 {
return false
}