From 3228e64f1ba986e6babb467fb280d614f19cfc76 Mon Sep 17 00:00:00 2001 From: Thomas Jager Date: Wed, 13 Mar 2013 12:53:08 +0100 Subject: [PATCH] Add Nick change function --- irc.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/irc.go b/irc.go index 5344b25..f58b902 100644 --- a/irc.go +++ b/irc.go @@ -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 }