mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-27 17:28:11 -07:00
remove insecure reattach check
See #2013; given that plaintext is deprecated now, it seems like there is no added value from continuing to police this.
This commit is contained in:
+1
-4
@@ -359,10 +359,7 @@ func (server *Server) tryRegister(c *Client, session *Session) (exiting bool) {
|
||||
rb := NewResponseBuffer(session)
|
||||
nickError := performNickChange(server, c, c, session, c.preregNick, rb)
|
||||
rb.Send(true)
|
||||
if nickError == errInsecureReattach {
|
||||
c.Quit(c.t("You can't mix secure and insecure connections to this account"), nil)
|
||||
return true
|
||||
} else if nickError != nil {
|
||||
if nickError != nil {
|
||||
c.preregNick = ""
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user