Don’t send NICK and USER while negotiating caps
This commit is contained in:
parent
e4af78aa4f
commit
08674caae5
7
irc.go
7
irc.go
@ -568,13 +568,6 @@ func (irc *Connection) negotiateCaps() error {
|
|||||||
}
|
}
|
||||||
irc.pwrite <- fmt.Sprintf("CAP END\r\n")
|
irc.pwrite <- fmt.Sprintf("CAP END\r\n")
|
||||||
|
|
||||||
realname := irc.user
|
|
||||||
if irc.RealName != "" {
|
|
||||||
realname = irc.RealName
|
|
||||||
}
|
|
||||||
|
|
||||||
irc.pwrite <- fmt.Sprintf("NICK %s\r\n", irc.nick)
|
|
||||||
irc.pwrite <- fmt.Sprintf("USER %s 0.0.0.0 0.0.0.0 :%s\r\n", irc.user, realname)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user