Correct issue where messages were over-trimmed
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>
Wed, 7 Feb 2018 10:51:55 +0000 (10:51 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 5 Apr 2018 21:39:27 +0000 (23:39 +0200)
commitf5abb30ac6ec8089901d686d9c2ec3387f97aaef
tree48b27a7b9246c42c83172fc23908ed51b6bda9b4
parenta83608156c3a561a0ba6d9625303040c02329550
Correct issue where messages were over-trimmed

In an attempt to correct a problem with quasseldroid multiline
messages (97a9b1646bb0d6362cef14bac3a577481cc01e49) the core started
trimming leading whitespace from lines. This broke pasting of things
like formatted code.

This commit ensures that only the splitting is done, and that we skip
empty lines when handling /SAY since they sometimes cause issues on
networks and the clients which split client-side already skip empty
lines.

Closes GH-331.
src/core/coreuserinputhandler.cpp