Commit Graph

13 Commits

Author SHA1 Message Date
Houmgaor
c64dabc3ba fix: check all Close() return values for errcheck lint
Add explicit error discards (_ =) for Close() calls on network
connections, SQL rows, and file handles across 28 files. Also add
.golangci.yml with standard linter defaults to match CI configuration.
2026-02-17 23:57:14 +01:00
Houmgaor
47f7a1f636 fix(channelserver): handle bare Exec errors and filter expected ErrNoRows
138 bare db.Exec calls across 22 handler files silently dropped write
errors. Each is now wrapped with error check and zap logging.

4 QueryRow sites that legitimately return sql.ErrNoRows during normal
operation (new player mezfes, festa rankings, empty guild item box)
now filter it out to reduce log noise.
2026-02-17 23:33:44 +01:00
Houmgaor
88fc17e790 fix: purge excess guild posts and clarify alliance TODO
Purge oldest guild posts beyond the limit (100 messages, 4 news) after
each new post is created. Replace misleading alliance application TODO
with a note that the feature is not yet implemented.
2026-02-17 18:12:07 +01:00
Houmgaor
46bbb6adf9 fix: resolve all remaining lint errors (errcheck) across 49 files
Fix unchecked error returns on bf.Seek(), db.Exec(), QueryRow().Scan(),
pkt.Build(), logger.Sync(), and binary.Write() calls. The linter now
passes with 0 errors, build compiles, and all tests pass with -race.
2026-02-17 18:07:38 +01:00
Houmgaor
c55f23442b fix(lint): fixing go static check failing. 2025-10-19 22:52:58 +02:00
wish
85fc76edd5 update parsing of many packets 2023-11-19 02:34:02 +11:00
wish
0b4dca5c45 fix RP not being consistent between clients 2023-07-22 03:00:07 +10:00
wish
bea4a8ad3a make various handlers not error fatally 2023-02-04 22:14:30 +11:00
wish
09f2d138c0 make various handlers not error fatally 2023-02-04 15:44:07 +11:00
wish
665c2dd32f handle alliance kicking 2022-10-01 00:10:00 +10:00
wish
34f0eb8315 handle leaving alliance 2022-09-30 23:54:16 +10:00
wish
40a86364d9 handle alliance enumeration 2022-09-30 23:05:10 +10:00
wish
2c0e7a5267 repository cleanup 2022-07-29 03:25:23 +10:00