zerowidth / camper_van

A Campfire to IRC bridge
MIT License
129 stars 25 forks source link

Please change paste behavior #18

Closed artkrz closed 11 years ago

artkrz commented 11 years ago

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

zerowidth commented 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.

artkrz commented 11 years ago

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.

artkrz commented 11 years ago

Actually it doesn't work as expected, please check screenshot. I've pasted a long source into textual.

Screenshot

zerowidth commented 11 years ago

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?

zerowidth commented 11 years ago

Closing pending additional feedback.

jimeh commented 11 years ago

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.

coredump commented 10 years ago

I think @jimeh idea is the only feasible one.