Giter Club home page Giter Club logo

Comments (7)

HelixSpiral avatar HelixSpiral commented on May 18, 2024

Weechat already supports CAP.

irc.server_default.capabilities
description: comma-separated list of client capabilities to enable for server if they are available; capabilities supported by WeeChat are: multi-prefix, userhost-in-names (example: "multi-prefix,userhost-in-names")
type: string
values: any string (default value: "")

I don't think a /cap command is needed as this isn't a command a user needs to send at all. You configure the client with the capabilities you want that your client supports, and it'll negotiate on your behalf when connecting.

If you really want this you can just alias /cap to /quote cap.

from weechat.

Mikaela avatar Mikaela commented on May 18, 2024

Or

/set irc.network.send_unknown_commands on

from weechat.

 avatar commented on May 18, 2024

EDITED

It's perfectly reasonable to use /cap while being connected, in case you changed the capabilities in the config but don't want to reconnect, or you want to temporarily enable/disable capabilities. Since WeeChat supports fancy output for CAP-related numerics, I think this would be a reasonable addition. Furthermore, there's /sajoin and friends, which aren't a standard as far as I know, whereas CAP is an IRCv3 standard.

from weechat.

HelixSpiral avatar HelixSpiral commented on May 18, 2024

@nyuszika7h What use would a regular user get out of being able to issue /cap? After asking in #ircv3 I can find no valid use for a regular using using /cap.

grawity | a client should always react to a received CAP ACK apropriately
grawity | so it would work both when the client issued /cap, and when the user did so for debugging or whatever reasons
grawity | same as any other command
grawity | but, other than that, I don't see why regular users would use it

It seems like a waste to add cap as its own command when the only time a user will issue it is during debugging and testing, especially when there is no added benefit of giving it it's own command instead of aliasing it to quote cap, or setting send_unknown_commands to on.

from weechat.

 avatar commented on May 18, 2024

On another note, WeeChat ignores the server's response to /cap list, is that intentional? (It could be useful for debugging even if a /cap command isn't added.)

from weechat.

HelixSpiral avatar HelixSpiral commented on May 18, 2024

@nyuszika7h I opened a pull request to fix the /cap list being ignored. Until that is accepted or something else is done to fix that you can still view the output of /cap list by opening the raw buffer with alt-j + alt-r

from weechat.

attilamolnar avatar attilamolnar commented on May 18, 2024

It's perfectly reasonable to use /cap while being connected, in case you changed the capabilities in the config but don't want to reconnect, or you want to temporarily enable/disable capabilities.

A user-friendly approach here would be to not let them request (etc.) a cap and potentially mess everything up without confirmation; if you let them send arbitrary CAP messages you can desync badly if they request something you don't understand.

EDIT: clarification.

from weechat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.