weechat / weechat

The extensible chat client.
https://weechat.org
GNU General Public License v3.0
2.98k stars 333 forks source link

Support for CHATHISTORY (ircv3) #1661

Open lord-re opened 3 years ago

lord-re commented 3 years ago

Chat History

CHATHISTORY is a new IRCv3 extension allowing clients to request channel's history.

Server support

Support landed in Unrealircd 5.2 released today so servers and is already present in Ergo. Channels must have the right mode to enable it.

How to use

It could be automatically triggered by weechat while going back in the backlog : when weechat can't go further in its logs it could ask the server to send more.

It could also be manually triggered with a command.

What's needed

Test server

It looks like irc2.unrealircd.org support CHATHISTORY already.

Mikaela commented 3 years ago

:+1: Ergo generally has chathistory enabled by default without needing separate modes and this would make my WeeChat experience more consistent with my Palaver experience on those.

Ergo testnet can be found from ircs://testnet.ergo.chat:6697/ and their production network ircs://irc.ergo.chat:6697/, at least the later has activity and may be helpful for testing.

sethkush commented 3 months ago

It seems like message tags and batch support have both been completed. Is anyone working on this? I'd like to help in any way I can, but I'm not familiar with the Weechat codebase. Any pointers on a good place to start?

trygveaa commented 3 months ago

@sethkush: I think this is blocked by #1279. At least if you want to gradually want to load more history and have it appear at the top of the buffer.

eli-schwartz commented 3 months ago

My primary initial use case as a potential user of this feature is simply to fetch a small amount of backlog after weechat restarts or temporary network flakiness. I'd be quite happy to see both features implemented independently. :D