Add Nick change function

This commit is contained in:
Thomas Jager 2013-03-13 12:53:08 +01:00
parent 0304912f18
commit 3228e64f1b

5
irc.go
View File

@ -156,6 +156,11 @@ func (irc *Connection) SendRawf(format string, a ...interface{}) {
irc.SendRaw(fmt.Sprintf(format, a...))
}
func (irc *Connection) Nick(n string) {
irc.nick = n
irc.SendRawf("NICK %s", n)
}
func (irc *Connection) GetNick() string {
return irc.nickcurrent
}