mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 23:44:52 +01:00
use default season integer on fail
This commit is contained in:
@@ -25,7 +25,7 @@ func encodeServerInfo(config *config.Config, s *Server) []byte {
|
||||
sid := (4096 + serverIdx*256) + 16
|
||||
err := s.db.QueryRow("SELECT season FROM servers WHERE server_id=$1", sid).Scan(&season)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
season = 0
|
||||
}
|
||||
if si.IP == "" {
|
||||
si.IP = config.Host
|
||||
|
||||
Reference in New Issue
Block a user