progval / Supybot-plugins

Collection of plugins for Supybot/Limnoria I wrote or forked.
https://github.com/ProgVal/Limnoria/
107 stars 63 forks source link

GitHub: Only shorten URLs for events if actually used in format string #310

Closed ghost closed 7 years ago

ghost commented 8 years ago

This avoids lag in the bot due to shortening URLs if it shows a shortened URL in before.push but does not use them in push, for example.

progval commented 8 years ago

Could you replace '__tiny' by key + '__tiny', and remove the NOTE comment?

ghost commented 8 years ago

That's a good point, didn't think of that. Makes things much faster even when each individual commit uses git.io. I think I tried something like that earlier and it didn't work for some reason, but it works fine now.