commit 572a51c
delthas
·
2025-01-13 01:40:25 +0000 UTC
parent f5c599e
Fix warning message on server without METADATA and SASL
1 files changed,
+9,
-3
+9,
-3
1@@ -2037,9 +2037,15 @@ func (s *Session) handleMessageRegistered(msg Message, playback bool) (Event, er
2 return nil, nil
3
4 }
5- if msg.Command == errUnknowncommand && msg.Params[1] == "BOUNCER" {
6- // ignore any error in response to unconditional BOUNCER LISTNETWORKS
7- return nil, nil
8+ if msg.Command == errUnknowncommand {
9+ switch msg.Params[1] {
10+ case "BOUNCER":
11+ // ignore any error in response to unconditional BOUNCER LISTNETWORKS
12+ return nil, nil
13+ case "METADATA":
14+ // ignore any error in response to unconditional METADATA SUB
15+ return nil, nil
16+ }
17 }
18 return ErrorEvent{
19 Severity: ReplySeverity(msg.Command),