-
Notifications
You must be signed in to change notification settings - Fork 174
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
RSS feeds which exceed IRC maximum message length are cut off #1533
Comments
Here's an example that I took from Bitbot, that kinda shows what I mean:
|
Here is how I'd fix it: in |
We just need to be careful so we don't remove anything from the URL (GitHub URLs tend to be quite big), otherwise we'll end up with a broken link. |
Small addendum: it would be nice to decide also what to do if the message would exceed the 512 bytes limit, like spit out the whole message (that could be 2+ lines), etc. A bit like the |
The safest way to do this would be to do a cut at the last space. This in most cases prevents breaking stuff. |
So, I've set my bot to spit RSS feeds in the format
[Feed Name] $title :: $link :: $description
. what happens is that sometimes descriptions are big and are cut off. it'd be nice if we could figure out when the message is exceeding the maximum length, cut it before the last word and add something like...
to the end instead.Example:
[Ubuntu Security Notices] USN-6049-1: Netty vulnerabilities :: https://ubuntu.com/security/notices/USN-6049-1 :: It was discovered that Netty's Zlib decoders did not limit memory allocations. A remote attacker ...
The text was updated successfully, but these errors were encountered: