Add Nick change function
This commit is contained in:
parent
0304912f18
commit
3228e64f1b
5
irc.go
5
irc.go
@ -156,6 +156,11 @@ func (irc *Connection) SendRawf(format string, a ...interface{}) {
|
|||||||
irc.SendRaw(fmt.Sprintf(format, a...))
|
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 {
|
func (irc *Connection) GetNick() string {
|
||||||
return irc.nickcurrent
|
return irc.nickcurrent
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user