Closed artkrz closed 11 years ago
The Paste message handling splits any incoming text on "\n" and sends the first three lines to IRC. If there are more, it should include a link to the rest. Is three lines too much? It seemed like a good balance for short-ish messages but not hiding information behind a click.
I think on a very long paste it'll split it up and put multiple paste urls to different parts of paste, but that might be campfire behavior.
Actually it doesn't work as expected, please check screenshot. I've pasted a long source into textual.
Ohh, I understand now. You're pasting code into your irc client, not displaying pastes.
The problem is, irc (and probably uour irc client as well) has no way of knowing that what you're about to paste into your client is many lines long. It's just a lot of sinle lines of text. Do you have any suggestions? A custom IRC command to indicate a section to get rolled up as a paste?
Closing pending additional feedback.
My suggestion would be for camper_van to treat messages coming within a ms or so of each other from an IRC client (not from Campfire) as a single paste. Cause realistically you'll never be able to type as fast as the IRC client can send each line as a message of a pasted piece of text.
I think @jimeh idea is the only feasible one.
Hello,
Grate job. Super simple and works but can you implement past links instead of text ? Or a shortend paste + links, on long paste the chat gets flooded.
Thanks