Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZNC - Ignore buffer playback / large amount of messages on connect #965

Closed
hashworks opened this issue Dec 24, 2019 · 5 comments
Closed
Labels
waiting for feedback Further information is requested

Comments

@hashworks
Copy link

I'm using matterbridge as a transparent bridge between IRC and Telegram. From the point of view of others I'm always connected and always using the same nickname. To archive this I use ZNC as an IRC bouncer to which matterbridge connects.

The problem occurs on restarts / reconnects of matterbridge: A large amount of messages (hundreds) are sent by ZNC to the client (matterbridge). This is used by ZNC to deliver the buffer of unread messages to the client, called the playback. Matterbridge however bridges those painfully slow to Telegram, taking multiple minutes before it's "ready" to deliver messages in real time.

So for one I wonder why the delay occurs (any MessageDelay for Telegram?). However, there is no need to show those messages, matterbridge could ignore them just fine. Easy solutions would be to ignore the first few seconds of messages or the first X messages from IRC. Another (cleaner) way would be to support the Playback ZNC module and tell it not to send any playback.

@qaisjp
Copy link
Collaborator

qaisjp commented Dec 24, 2019

In the meantime, as a workaround, in the znc interface can you turn off the playback module for that account?

@hashworks
Copy link
Author

I could tell the server to not send any playback, yes – that has nothing to do with the linked module. I'll try that for debugging purposes.

@42wim
Copy link
Owner

42wim commented Dec 31, 2019

From this page: https://wiki.znc.in/Playback

The module also allows configuring client specific buffer limits for identified clients, using the following command syntax:
/msg *playback LIMIT [limit]
A limit of less or equal to 0 clears the limit. Notice that the limit cannot exceed the limit set in the ZNC configuration, but can be used to limit the playback for eg. mobile clients.

You could try to do https://github.com/42wim/matterbridge/wiki/Settings#runcommands

RunCommands=["PRIVMSG *playback :LIMIT clientid -1"]

@42wim 42wim added the waiting for feedback Further information is requested label Jan 7, 2020
@42wim
Copy link
Owner

42wim commented Jan 7, 2020

@hashworks did my suggestion help?

@hashworks
Copy link
Author

Sorry for the delay. I'm now using the clientbuffer plugin, seems to work fine. As you suggested I added an identifier to matterbridge, which allows one to set a negative timelimit:
/msg *clientbuffer SetClientTimeLimit matterbridge -1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for feedback Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants