grim/gobnc
Clone
Summary
Browse
Changes
Graph
Created a config object and the start of the server
draft
2018-08-08, Gary Kramlich
2ecd482b625d
Created a config object and the start of the server
package
irc
import
(
"regexp"
)
var
(
regexNick
=
regexp
.
MustCompile
(
`^[A-Za-z][A-Za-z0-9-[\]\^{}]*`
)
)
func
NickValid
(
nick
string
)
bool
{
return
regexNick
.
MatchString
(
nick
)
}