Comments (7)
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.
Or
/set irc.network.send_unknown_commands on
from weechat.
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.
@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.
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.
@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.
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)
- /amsg and /ame also send in parted channels HOT 1
- add tags in buffer created with /exec -nf
- the hook_line always print a line even if there is no content HOT 1
- removing a line in a hook_line differ between free and formatted buffer HOT 1
- For many IRC signals, ${nick} is the server domain instead of the nick HOT 2
- Reusing a xfer chat buffer after an /upgrade breaks the buffer
- /input search_stop always scrolls to the bottom
- add an addreplace to all commands that have an add
- IRCv3 server-time messages delivered out of order are appended to the buffer which breaks IRC as a p2p protocol HOT 2
- Convert option weechat.look.hotlist_sort to a list of hdata fields
- API function to update hotlist for a buffer with direct values
- Support for more notify levels
- Behaviors search_text and search_text_here the same? HOT 1
- Expose setting custom FIFO path as CLI argument for convenience HOT 1
- Why does my custom buflist.format.buffer not respect color changes by weechat? HOT 1
- different syntax between mouse and cursor mode to specify all keys
- Error decoding websocket frame for client (API relay)
- account-notify causes /who spam in server buffer
- ruby: (some) builtin functions not available with ruby 3.3 HOT 1
- unban with range as parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weechat.