export GetNick

This commit is contained in:
blackbeard420 2020-01-05 14:18:27 -05:00
parent b98f2cf7f1
commit 7cd73d96ff

3
irc.go
View File

@ -91,7 +91,8 @@ func NewConnection(server, nick, user, pass string, chans []string) *Connection
return irc
}
func getNick(name string) string {
//GetNick gets the nickname portion of a host string
func GetNick(name string) string {
return strings.Split(name, "!")[0]
}