소스 검색

Hide reconnected successfully message if report_connection_retry is false

Tulir Asokan 5 년 전
부모
커밋
7947ba616c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      user.go

+ 3 - 1
user.go

@@ -597,7 +597,9 @@ func (user *User) tryReconnect(msg string) {
 		err := user.Conn.Restore()
 		if err == nil {
 			user.ConnectionErrors = 0
-			_, _ = user.bridge.Bot.SendNotice(user.GetManagementRoom(), "Reconnected successfully")
+			if user.bridge.Config.Bridge.ReportConnectionRetry {
+				_, _ = user.bridge.Bot.SendNotice(user.GetManagementRoom(), "Reconnected successfully")
+			}
 			user.PostLogin()
 			return
 		} else if err.Error() == "init responded with 400" {