summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-10-23 11:35:40 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-10-23 11:35:40 +0200
commit2aab42117532d5b9effadce1260b1ddd3c9423e0 (patch)
tree3a37015da2620f4654128ee391c6b38aae7933c2
parentDon't display buffer numbers on empty command (diff)
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.
-rw-r--r--irc/session.go28
1 files changed, 12 insertions, 16 deletions
diff --git a/irc/session.go b/irc/session.go
index 716d3fb..54c1ac6 100644
--- a/irc/session.go
+++ b/irc/session.go
@@ -46,22 +46,18 @@ func (auth *SASLPlain) Respond(challenge string) (res string, err error) {
// SupportedCapabilities is the set of capabilities supported by this library.
var SupportedCapabilities = map[string]struct{}{
- "account-notify": {},
- "account-tag": {},
- "away-notify": {},
- "batch": {},
- "cap-notify": {},
+ "away-notify": {},
+ "batch": {},
+ "cap-notify": {},
+ "echo-message": {},
+ "invite-notify": {},
+ "message-tags": {},
+ "multi-prefix": {},
+ "server-time": {},
+ "sasl": {},
+ "setname": {},
+
"draft/chathistory": {},
- "echo-message": {},
- "extended-join": {},
- "invite-notify": {},
- "labeled-response": {},
- "message-tags": {},
- "multi-prefix": {},
- "server-time": {},
- "sasl": {},
- "setname": {},
- "userhost-in-names": {},
}
// Values taken by the "@+typing=" client tag. TypingUnspec means the value or
@@ -747,7 +743,7 @@ func (s *Session) handleRegistered(msg Message) Event {
if c, ok := s.channels[channelCf]; ok {
return ModeChangeEvent{
Channel: c.Name,
- Mode: strings.Join(msg.Params[1:], " "),
+ Mode: strings.Join(msg.Params[1:], " "),
}
}
case "PRIVMSG", "NOTICE":