diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-12-08 23:43:28 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-12-08 23:43:28 +0100 |
commit | c548ffbb9cf1902378c8984054a02d29141a3b0b (patch) | |
tree | c15b2910273abde35bc51324c53f61b413150f53 | |
parent | 7ac6eaee4f6a62cb2fa72b7677664c23df1d6d91 (diff) |
gserver: handle randomness failures correctly (actually retry)
-rw-r--r-- | chatcommands.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chatcommands.go b/chatcommands.go index ed7b6e0..91caf75 100644 --- a/chatcommands.go +++ b/chatcommands.go @@ -508,8 +508,12 @@ func init() { return "Group is also a server." } - if i == 4 && cc.ServerName() == srv { - return "Already connected to this server after 5 attempts." + if cc.ServerName() == srv { + if i == 4 { + return "Already connected to this server after 5 attempts." + } else { + continue + } } if err := cc.HopGroup(srv); err != nil { |