commit 2aab421
Hubert Hirtz
·
2021-10-23 09:35:40 +0000 UTC
parent cc8aae7
Cleanup unused caps They don't add anything in the UI, and generate useless traffic. Account tracking is not used: - account-notify - account-tag - extended-join We don't really care about users, hosts, nor real names: - extended-join - userhost-in-names away-notify and invite-notify are also not used, but will be in the near future.
1 files changed,
+12,
-16
+12,
-16
1@@ -46,22 +46,18 @@ func (auth *SASLPlain) Respond(challenge string) (res string, err error) {
2
3 // SupportedCapabilities is the set of capabilities supported by this library.
4 var SupportedCapabilities = map[string]struct{}{
5- "account-notify": {},
6- "account-tag": {},
7- "away-notify": {},
8- "batch": {},
9- "cap-notify": {},
10+ "away-notify": {},
11+ "batch": {},
12+ "cap-notify": {},
13+ "echo-message": {},
14+ "invite-notify": {},
15+ "message-tags": {},
16+ "multi-prefix": {},
17+ "server-time": {},
18+ "sasl": {},
19+ "setname": {},
20+
21 "draft/chathistory": {},
22- "echo-message": {},
23- "extended-join": {},
24- "invite-notify": {},
25- "labeled-response": {},
26- "message-tags": {},
27- "multi-prefix": {},
28- "server-time": {},
29- "sasl": {},
30- "setname": {},
31- "userhost-in-names": {},
32 }
33
34 // Values taken by the "@+typing=" client tag. TypingUnspec means the value or
35@@ -747,7 +743,7 @@ func (s *Session) handleRegistered(msg Message) Event {
36 if c, ok := s.channels[channelCf]; ok {
37 return ModeChangeEvent{
38 Channel: c.Name,
39- Mode: strings.Join(msg.Params[1:], " "),
40+ Mode: strings.Join(msg.Params[1:], " "),
41 }
42 }
43 case "PRIVMSG", "NOTICE":